diff --git a/src/components/com_tjucm/site/controllers/item.php b/src/components/com_tjucm/site/controllers/item.php index 02faed5e..ab40ac17 100644 --- a/src/components/com_tjucm/site/controllers/item.php +++ b/src/components/com_tjucm/site/controllers/item.php @@ -30,18 +30,6 @@ public function __construct() $this->client = JFactory::getApplication()->input->get('client'); $this->created_by = JFactory::getApplication()->input->get('created_by'); - $this->appendUrl = ""; - - if (!empty($this->created_by)) - { - $this->appendUrl .= "&created_by=" . $this->created_by; - } - - if (!empty($this->client)) - { - $this->appendUrl .= "&client=" . $this->client; - } - // Get UCM type id from uniquue identifier JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_tjucm/models'); $tjUcmModelType = JModelLegacy::getInstance('Type', 'TjucmModel'); @@ -69,6 +57,19 @@ public function __construct() } } } + + $this->appendUrl = ""; + + if (!empty($this->created_by)) + { + $this->appendUrl .= "&created_by=" . $this->created_by; + } + + if (!empty($this->client)) + { + $this->appendUrl .= "&client=" . $this->client; + } + parent::__construct(); } diff --git a/src/components/com_tjucm/site/layouts/list/list.php b/src/components/com_tjucm/site/layouts/list/list.php index 81aa1802..6ff9d6a7 100644 --- a/src/components/com_tjucm/site/layouts/list/list.php +++ b/src/components/com_tjucm/site/layouts/list/list.php @@ -22,7 +22,6 @@ } $fieldsData = $displayData['fieldsData']; - $app = Factory::getApplication(); $user = Factory::getUser(); @@ -152,7 +151,7 @@ $fieldXml = $formObject->getFieldXml($tjFieldsFieldTable->name); ?> - + created_by == $user->id)) { diff --git a/src/components/com_tjucm/site/views/items/tmpl/default.php b/src/components/com_tjucm/site/views/items/tmpl/default.php index 6d7b8a7a..6ce3b12c 100644 --- a/src/components/com_tjucm/site/views/items/tmpl/default.php +++ b/src/components/com_tjucm/site/views/items/tmpl/default.php @@ -258,7 +258,9 @@ function copyItem() 'ucmTypeId' => $this->ucmTypeId, 'ucmTypeParams' => $this->ucmTypeParams, 'fieldsData' => $fieldsData, - 'formObject' => $formObject + 'formObject' => $formObject, + 'statusColumnWidth' => $statusColumnWidth, + 'listcolumn' => $this->listcolumn ) ); }