mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +00:00
Merge branch 'seeddms-5.0.x' into seeddms-5.1.x
This commit is contained in:
commit
813b265f6c
|
@ -2289,7 +2289,7 @@ class SeedDMS_Core_DMS {
|
||||||
|
|
||||||
$workflows = array();
|
$workflows = array();
|
||||||
for ($i = 0; $i < count($resArr); $i++) {
|
for ($i = 0; $i < count($resArr); $i++) {
|
||||||
$workflow = new SeedDMS_Core_Workflow($resArr[$i]["id"], $resArr[$i]["name"], $wkfstates[$resArr[$i]["initstate"]]);
|
$workflow = new SeedDMS_Core_Workflow($resArr[$i]["id"], $resArr[$i]["name"], $wkfstates[$resArr[$i]["initstate"]], $resArr[$i]["layoutdata"]);
|
||||||
$workflow->setDMS($this);
|
$workflow->setDMS($this);
|
||||||
$workflows[$i] = $workflow;
|
$workflows[$i] = $workflow;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4919,7 +4919,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
||||||
return false;
|
return false;
|
||||||
if(!$recs)
|
if(!$recs)
|
||||||
return false;
|
return false;
|
||||||
$this->_workflow = new SeedDMS_Core_Workflow($recs[0]['id'], $recs[0]['name'], $this->_document->_dms->getWorkflowState($recs[0]['initstate']));
|
$this->_workflow = new SeedDMS_Core_Workflow($recs[0]['id'], $recs[0]['name'], $this->_document->_dms->getWorkflowState($recs[0]['initstate']), $recs[0]["layoutdata"]);
|
||||||
$this->_workflow->setDMS($this->_document->_dms);
|
$this->_workflow->setDMS($this->_document->_dms);
|
||||||
}
|
}
|
||||||
return $this->_workflow;
|
return $this->_workflow;
|
||||||
|
|
|
@ -788,6 +788,7 @@ URL: [url]',
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => '',
|
'receipt_summary' => '',
|
||||||
'recipients' => '',
|
'recipients' => '',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => 'اعادة تحميل',
|
'refresh' => 'اعادة تحميل',
|
||||||
'rejected' => 'مرفوض',
|
'rejected' => 'مرفوض',
|
||||||
'released' => 'منشور',
|
'released' => 'منشور',
|
||||||
|
|
|
@ -689,6 +689,7 @@ $text = array(
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => '',
|
'receipt_summary' => '',
|
||||||
'recipients' => '',
|
'recipients' => '',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => 'Обнови',
|
'refresh' => 'Обнови',
|
||||||
'rejected' => 'Отказан',
|
'rejected' => 'Отказан',
|
||||||
'released' => 'Утвърден',
|
'released' => 'Утвърден',
|
||||||
|
|
|
@ -694,6 +694,7 @@ URL: [url]',
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => '',
|
'receipt_summary' => '',
|
||||||
'recipients' => '',
|
'recipients' => '',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => 'Refresh',
|
'refresh' => 'Refresh',
|
||||||
'rejected' => 'Rebutjat',
|
'rejected' => 'Rebutjat',
|
||||||
'released' => 'Publicat',
|
'released' => 'Publicat',
|
||||||
|
|
|
@ -799,6 +799,7 @@ Pokud budete mít problém s přihlášením i po změně hesla, kontaktujte Adm
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => '',
|
'receipt_summary' => '',
|
||||||
'recipients' => '',
|
'recipients' => '',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => 'Obnovit',
|
'refresh' => 'Obnovit',
|
||||||
'rejected' => 'Odmítnuto',
|
'rejected' => 'Odmítnuto',
|
||||||
'released' => 'Vydáno',
|
'released' => 'Vydáno',
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
//
|
//
|
||||||
// Translators: Admin (2290), dgrutsch (21)
|
// Translators: Admin (2291), dgrutsch (21)
|
||||||
|
|
||||||
$text = array(
|
$text = array(
|
||||||
'2_factor_auth' => '2-Faktor Authentifizierung',
|
'2_factor_auth' => '2-Faktor Authentifizierung',
|
||||||
|
@ -812,6 +812,7 @@ URL: [url]',
|
||||||
'receipt_status' => 'Status',
|
'receipt_status' => 'Status',
|
||||||
'receipt_summary' => 'Übersicht Bestätigungen',
|
'receipt_summary' => 'Übersicht Bestätigungen',
|
||||||
'recipients' => 'Empfänger',
|
'recipients' => 'Empfänger',
|
||||||
|
'redraw' => 'Neu zeichnen',
|
||||||
'refresh' => 'Aktualisieren',
|
'refresh' => 'Aktualisieren',
|
||||||
'rejected' => 'abgelehnt',
|
'rejected' => 'abgelehnt',
|
||||||
'released' => 'freigegeben',
|
'released' => 'freigegeben',
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
//
|
//
|
||||||
// Translators: Admin (1437), dgrutsch (7), netixw (14)
|
// Translators: Admin (1438), dgrutsch (7), netixw (14)
|
||||||
|
|
||||||
$text = array(
|
$text = array(
|
||||||
'2_factor_auth' => '2-factor authentication',
|
'2_factor_auth' => '2-factor authentication',
|
||||||
|
@ -813,6 +813,7 @@ URL: [url]',
|
||||||
'receipt_status' => 'Status',
|
'receipt_status' => 'Status',
|
||||||
'receipt_summary' => 'Receipt summary',
|
'receipt_summary' => 'Receipt summary',
|
||||||
'recipients' => 'Recipients',
|
'recipients' => 'Recipients',
|
||||||
|
'redraw' => 'Redraw',
|
||||||
'refresh' => 'Refresh',
|
'refresh' => 'Refresh',
|
||||||
'rejected' => 'Rejected',
|
'rejected' => 'Rejected',
|
||||||
'released' => 'Released',
|
'released' => 'Released',
|
||||||
|
|
|
@ -803,6 +803,7 @@ Si continua teniendo problemas de acceso, por favor contacte con el administrado
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => '',
|
'receipt_summary' => '',
|
||||||
'recipients' => '',
|
'recipients' => '',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => 'Actualizar',
|
'refresh' => 'Actualizar',
|
||||||
'rejected' => 'Rechazado',
|
'rejected' => 'Rechazado',
|
||||||
'released' => 'Publicado',
|
'released' => 'Publicado',
|
||||||
|
|
|
@ -800,6 +800,7 @@ En cas de problème persistant, veuillez contacter votre administrateur.',
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => '',
|
'receipt_summary' => '',
|
||||||
'recipients' => '',
|
'recipients' => '',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => 'Actualiser',
|
'refresh' => 'Actualiser',
|
||||||
'rejected' => 'Rejeté',
|
'rejected' => 'Rejeté',
|
||||||
'released' => 'Publié',
|
'released' => 'Publié',
|
||||||
|
|
|
@ -807,6 +807,7 @@ Ako i dalje imate problema s prijavom, molimo kontaktirajte Vašeg administrator
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => 'Sažetak prijema',
|
'receipt_summary' => 'Sažetak prijema',
|
||||||
'recipients' => 'Primatelji',
|
'recipients' => 'Primatelji',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => 'Osvježi',
|
'refresh' => 'Osvježi',
|
||||||
'rejected' => 'Odbijeno',
|
'rejected' => 'Odbijeno',
|
||||||
'released' => 'Obrađeno',
|
'released' => 'Obrađeno',
|
||||||
|
|
|
@ -803,6 +803,7 @@ Amennyiben problémákba ütközik a bejelentkezés során, kérjük vegye fel a
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => '',
|
'receipt_summary' => '',
|
||||||
'recipients' => '',
|
'recipients' => '',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => 'Frissítés',
|
'refresh' => 'Frissítés',
|
||||||
'rejected' => 'Elutasított',
|
'rejected' => 'Elutasított',
|
||||||
'released' => 'Kiadott',
|
'released' => 'Kiadott',
|
||||||
|
|
|
@ -814,6 +814,7 @@ URL: [url]',
|
||||||
'receipt_status' => 'Status',
|
'receipt_status' => 'Status',
|
||||||
'receipt_summary' => 'Sommario ricezione',
|
'receipt_summary' => 'Sommario ricezione',
|
||||||
'recipients' => 'Cartelle',
|
'recipients' => 'Cartelle',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => 'Ricarica',
|
'refresh' => 'Ricarica',
|
||||||
'rejected' => 'Rifiutato',
|
'rejected' => 'Rifiutato',
|
||||||
'released' => 'Rilasciato',
|
'released' => 'Rilasciato',
|
||||||
|
|
|
@ -800,6 +800,7 @@ URL : [url]',
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => '접수증 요약',
|
'receipt_summary' => '접수증 요약',
|
||||||
'recipients' => '받는 사람',
|
'recipients' => '받는 사람',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => '새로 고침',
|
'refresh' => '새로 고침',
|
||||||
'rejected' => '거부',
|
'rejected' => '거부',
|
||||||
'released' => '발표',
|
'released' => '발표',
|
||||||
|
|
|
@ -806,6 +806,7 @@ URL: [url]',
|
||||||
'receipt_status' => 'Status ontvangst',
|
'receipt_status' => 'Status ontvangst',
|
||||||
'receipt_summary' => 'Samenvatting',
|
'receipt_summary' => 'Samenvatting',
|
||||||
'recipients' => 'Ontvangers',
|
'recipients' => 'Ontvangers',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => 'Verversen',
|
'refresh' => 'Verversen',
|
||||||
'rejected' => 'Afgewezen',
|
'rejected' => 'Afgewezen',
|
||||||
'released' => 'Gepubliceerd',
|
'released' => 'Gepubliceerd',
|
||||||
|
|
|
@ -796,6 +796,7 @@ Jeśli nadal będą problemy z zalogowaniem, prosimy o kontakt z administratorem
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => '',
|
'receipt_summary' => '',
|
||||||
'recipients' => '',
|
'recipients' => '',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => 'Odśwież',
|
'refresh' => 'Odśwież',
|
||||||
'rejected' => 'Odrzucony',
|
'rejected' => 'Odrzucony',
|
||||||
'released' => 'Zatwierdzony',
|
'released' => 'Zatwierdzony',
|
||||||
|
|
|
@ -801,6 +801,7 @@ Se você ainda tiver problemas para fazer o login, por favor, contate o administ
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => '',
|
'receipt_summary' => '',
|
||||||
'recipients' => '',
|
'recipients' => '',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => 'Atualizar',
|
'refresh' => 'Atualizar',
|
||||||
'rejected' => 'Rejected',
|
'rejected' => 'Rejected',
|
||||||
'released' => 'Released',
|
'released' => 'Released',
|
||||||
|
|
|
@ -808,6 +808,7 @@ Dacă aveți în continuare probleme la autentificare, vă rugăm să contactaț
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => '',
|
'receipt_summary' => '',
|
||||||
'recipients' => 'Destinatari',
|
'recipients' => 'Destinatari',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => 'Refresh',
|
'refresh' => 'Refresh',
|
||||||
'rejected' => 'Respins',
|
'rejected' => 'Respins',
|
||||||
'released' => 'Final(Released)',
|
'released' => 'Final(Released)',
|
||||||
|
|
|
@ -810,6 +810,7 @@ URL: [url]',
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => 'Сводка по получению',
|
'receipt_summary' => 'Сводка по получению',
|
||||||
'recipients' => 'Получатели',
|
'recipients' => 'Получатели',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => 'Обновить',
|
'refresh' => 'Обновить',
|
||||||
'rejected' => 'Отклонён',
|
'rejected' => 'Отклонён',
|
||||||
'released' => 'Утверждён',
|
'released' => 'Утверждён',
|
||||||
|
|
|
@ -693,6 +693,7 @@ URL: [url]',
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => '',
|
'receipt_summary' => '',
|
||||||
'recipients' => '',
|
'recipients' => '',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => '',
|
'refresh' => '',
|
||||||
'rejected' => 'Odmietnuté',
|
'rejected' => 'Odmietnuté',
|
||||||
'released' => 'Vydané',
|
'released' => 'Vydané',
|
||||||
|
|
|
@ -788,6 +788,7 @@ URL: [url]',
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => '',
|
'receipt_summary' => '',
|
||||||
'recipients' => '',
|
'recipients' => '',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => 'Uppdatera',
|
'refresh' => 'Uppdatera',
|
||||||
'rejected' => 'Avvisat',
|
'rejected' => 'Avvisat',
|
||||||
'released' => 'Klart för användning',
|
'released' => 'Klart för användning',
|
||||||
|
|
|
@ -804,6 +804,7 @@ Giriş yaparken halen sorun yaşıyorsanız lütfen sistem yöneticinizle görü
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => '',
|
'receipt_summary' => '',
|
||||||
'recipients' => '',
|
'recipients' => '',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => 'Yenile',
|
'refresh' => 'Yenile',
|
||||||
'rejected' => 'Reddedildi',
|
'rejected' => 'Reddedildi',
|
||||||
'released' => 'Yayınlandı',
|
'released' => 'Yayınlandı',
|
||||||
|
|
|
@ -810,6 +810,7 @@ URL: [url]',
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => 'Підсумки отримання',
|
'receipt_summary' => 'Підсумки отримання',
|
||||||
'recipients' => 'Отримувачі',
|
'recipients' => 'Отримувачі',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => 'Оновити',
|
'refresh' => 'Оновити',
|
||||||
'rejected' => 'Відхилений',
|
'rejected' => 'Відхилений',
|
||||||
'released' => 'Затверджений',
|
'released' => 'Затверджений',
|
||||||
|
|
|
@ -695,6 +695,7 @@ URL: [url]',
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => '',
|
'receipt_summary' => '',
|
||||||
'recipients' => '',
|
'recipients' => '',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => '',
|
'refresh' => '',
|
||||||
'rejected' => '拒绝',
|
'rejected' => '拒绝',
|
||||||
'released' => '发布',
|
'released' => '发布',
|
||||||
|
|
|
@ -693,6 +693,7 @@ URL: [url]',
|
||||||
'receipt_status' => '',
|
'receipt_status' => '',
|
||||||
'receipt_summary' => '',
|
'receipt_summary' => '',
|
||||||
'recipients' => '',
|
'recipients' => '',
|
||||||
|
'redraw' => '',
|
||||||
'refresh' => '',
|
'refresh' => '',
|
||||||
'rejected' => '拒絕',
|
'rejected' => '拒絕',
|
||||||
'released' => '發佈',
|
'released' => '發佈',
|
||||||
|
|
|
@ -33,6 +33,11 @@ class SeedDMS_View_WorkflowGraph extends SeedDMS_Bootstrap_Style {
|
||||||
|
|
||||||
function js() { /* {{{ */
|
function js() { /* {{{ */
|
||||||
$this->workflow = $this->params['workflow'];
|
$this->workflow = $this->params['workflow'];
|
||||||
|
/* curtransitions is a list of transition that shall be highlighted.
|
||||||
|
* It is used to mark the current transition a user can trigger.
|
||||||
|
* Setting this will automatically show all other transitions with
|
||||||
|
* higher opacity.
|
||||||
|
*/
|
||||||
$this->curtransitions = $this->params['transitions'];
|
$this->curtransitions = $this->params['transitions'];
|
||||||
header('Content-Type: application/javascript; charset=UTF-8');
|
header('Content-Type: application/javascript; charset=UTF-8');
|
||||||
|
|
||||||
|
@ -232,6 +237,7 @@ $(document).ready(function() {
|
||||||
$this->seentrans = array();
|
$this->seentrans = array();
|
||||||
$this->states = array();
|
$this->states = array();
|
||||||
$this->actions = array();
|
$this->actions = array();
|
||||||
|
$highlightstates = array();
|
||||||
foreach($transitions as $transition) {
|
foreach($transitions as $transition) {
|
||||||
$action = $transition->getAction();
|
$action = $transition->getAction();
|
||||||
$maxtime = $transition->getMaxTime();
|
$maxtime = $transition->getMaxTime();
|
||||||
|
@ -264,46 +270,43 @@ $(document).ready(function() {
|
||||||
name: \"".str_replace('"', "\\\"", $action->getName())/*.($unames ? "\\n(".str_replace('"', "\\\"", implode(", ", $unames)).")" : '').($gnames ? "\\n(".str_replace('"', "\\\"", implode(", ", $gnames)).")" : '')*/."\"
|
name: \"".str_replace('"', "\\\"", $action->getName())/*.($unames ? "\\n(".str_replace('"', "\\\"", implode(", ", $unames)).")" : '').($gnames ? "\\n(".str_replace('"', "\\\"", implode(", ", $gnames)).")" : '')*/."\"
|
||||||
},".(isset($positions[$nodeid]) ? "
|
},".(isset($positions[$nodeid]) ? "
|
||||||
position: {x: ".$positions[$nodeid]->x.", y: ".$positions[$nodeid]->y."}," : "")."
|
position: {x: ".$positions[$nodeid]->x.", y: ".$positions[$nodeid]->y."}," : "")."
|
||||||
classes: 'action".($iscurtransition ? " current" : ($this->curtransitions ? " light" : ""))."',
|
classes: 'action".($iscurtransition ? " current" : ($this->curtransitions ? " light" : ""))."'".(!$this->curtransitions || $iscurtransition && $this->curtransitions ? ",
|
||||||
scratch: {
|
scratch: {
|
||||||
app: {groups: \"".str_replace('"', "\\\"", implode(", ", $gnames))."\", users: \"".str_replace('"', "\\\"", implode(", ", $unames))."\"}
|
app: {groups: \"".str_replace('"', "\\\"", implode(", ", $gnames))."\", users: \"".str_replace('"', "\\\"", implode(", ", $unames))."\"}
|
||||||
}
|
}" : "")."
|
||||||
});\n";
|
});\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($this->states[$state->getID()])) {
|
/* Collect all states and remember those which are part of a
|
||||||
|
* current transition.
|
||||||
|
*/
|
||||||
|
if(!isset($this->states[$state->getID()]) || $iscurtransition) {
|
||||||
|
if($iscurtransition)
|
||||||
|
$highlightstates[] = $state->getID();
|
||||||
$this->states[$state->getID()] = $state;
|
$this->states[$state->getID()] = $state;
|
||||||
$initstate = '';
|
|
||||||
if($state == $this->workflow->getInitState())
|
|
||||||
$initstate = getMLText('workflow_initstate');
|
|
||||||
$nodeid = "S".$state->getID();
|
|
||||||
echo "cy.add({
|
|
||||||
data: {
|
|
||||||
id: '".$nodeid."',
|
|
||||||
name: \"".str_replace('"', "\\\"", $state->getName()/*."\\n".$initstate*/)."\"
|
|
||||||
},".(isset($positions[$nodeid]) ? "
|
|
||||||
position: {x: ".$positions[$nodeid]->x.", y: ".$positions[$nodeid]->y."}," : "")."
|
|
||||||
classes: 'state ".($state == $this->workflow->getInitState() ? 'init' : '')."'
|
|
||||||
});\n";
|
|
||||||
}
|
}
|
||||||
if(!isset($this->states[$nextstate->getID()])) {
|
if(!isset($this->states[$nextstate->getID()]) || $iscurtransition) {
|
||||||
|
if($iscurtransition)
|
||||||
|
$highlightstates[] = $nextstate->getID();
|
||||||
$this->states[$nextstate->getID()] = $nextstate;
|
$this->states[$nextstate->getID()] = $nextstate;
|
||||||
$docstatus = $nextstate->getDocumentStatus();
|
}
|
||||||
$nodeid = "S".$nextstate->getID();
|
}
|
||||||
echo "cy.add({
|
|
||||||
|
foreach($this->states as $state) {
|
||||||
|
$docstatus = $state->getDocumentStatus();
|
||||||
|
$nodeid = 'S'.$state->getID();
|
||||||
|
echo "cy.add({
|
||||||
data: {
|
data: {
|
||||||
id: '".$nodeid."',
|
id: '".$nodeid."',
|
||||||
name: '".str_replace('"', "\\\"", $nextstate->getName())/*.($docstatus == S_RELEASED || $docstatus == S_REJECTED ? "\\n(".getOverallStatusText($docstatus).")" : '')*/."'
|
name: \"".str_replace('"', "\\\"", $state->getName())."\"
|
||||||
},".(isset($positions[$nodeid]) ? "
|
},".(isset($positions[$nodeid]) ? "
|
||||||
position: {x: ".$positions[$nodeid]->x.", y: ".$positions[$nodeid]->y."}," : "")."
|
position: {x: ".$positions[$nodeid]->x.", y: ".$positions[$nodeid]->y."}," : "")."
|
||||||
classes: 'state".($docstatus == S_RELEASED ? ' released' : ($docstatus == S_REJECTED ? ' rejected' : ''))."'
|
classes: 'state".($state == $this->workflow->getInitState() ? ' init' : ($docstatus == S_RELEASED ? ' released' : ($docstatus == S_REJECTED ? ' rejected' : ''))).($highlightstates && !in_array($state->getID(), $highlightstates) ? ' light' : '')."'
|
||||||
});\n";
|
});\n";
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($transitions as $transition) {
|
foreach($transitions as $transition) {
|
||||||
if(!in_array($transition->getID(), $this->seentrans)) {
|
// if(!in_array($transition->getID(), $this->seentrans)) {
|
||||||
$state = $transition->getState();
|
$state = $transition->getState();
|
||||||
$nextstate = $transition->getNextState();
|
$nextstate = $transition->getNextState();
|
||||||
$action = $transition->getAction();
|
$action = $transition->getAction();
|
||||||
|
@ -331,8 +334,8 @@ $(document).ready(function() {
|
||||||
},
|
},
|
||||||
classes: '".($iscurtransition ? " current" : ($this->curtransitions ? " light" : ""))."',
|
classes: '".($iscurtransition ? " current" : ($this->curtransitions ? " light" : ""))."',
|
||||||
});\n";
|
});\n";
|
||||||
$this->seentrans[] = $transition->getID();
|
// $this->seentrans[] = $transition->getID();
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user