mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +00:00
new task workflow02
fix bugs
This commit is contained in:
@@ -39,8 +39,8 @@ phrasea::headers();
|
||||
$ztask = $task_manager->getTask($parm['__tid']);
|
||||
switch ($parm['__act']) {
|
||||
case 'FORM2XML':
|
||||
if (method_exists($ztask, 'printInterfaceHTML')) {
|
||||
if ($ztask->getGraphicForm()) {
|
||||
if ($ztask->hasInterfaceHTML()) {
|
||||
if (1) {
|
||||
$xml = p4string::MakeString($ztask->graphic2xml($parm['__xml']), "js");
|
||||
} else {
|
||||
$xml = p4string::MakeString($parm['__xml'], "js");
|
||||
@@ -61,9 +61,9 @@ phrasea::headers();
|
||||
break;
|
||||
|
||||
case 'XML2FORM':
|
||||
if (method_exists($ztask, 'printInterfaceHTML')) {
|
||||
if ($ztask->hasInterfaceHTML()) {
|
||||
if ((simplexml_load_string($parm['txtareaxml']))) {
|
||||
if ($ztask->getGraphicForm()) {
|
||||
if (1) {
|
||||
if (($msg = ($ztask->xml2graphic($parm['txtareaxml'], "parent.document.forms['graphicForm']"))) == "") {
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
|
Reference in New Issue
Block a user