Skip to content

Commit

Permalink
Merge pull request techjoomla#343 from ankush-maherwal/release-1.2.4
Browse files Browse the repository at this point in the history
Release 1.2.4
  • Loading branch information
ankush-maherwal committed Jan 24, 2020
2 parents 741c9ea + e325a46 commit 555f2d0
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 20 deletions.
25 changes: 13 additions & 12 deletions src/components/com_tjucm/site/controllers/item.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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();
}

Expand Down
3 changes: 1 addition & 2 deletions src/components/com_tjucm/site/layouts/list/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
}

$fieldsData = $displayData['fieldsData'];

$app = Factory::getApplication();
$user = Factory::getUser();

Expand Down Expand Up @@ -152,7 +151,7 @@

$fieldXml = $formObject->getFieldXml($tjFieldsFieldTable->name);
?>
<td style="word-break: break-word;" width="<?php echo (85 - $statusColumnWidth) / count($this->listcolumn) . '%';?>">
<td style="word-break: break-word;" width="<?php echo (85 - $displayData['statusColumnWidth']) / count($displayData['listcolumn']) . '%';?>">
<?php
if ($canView || ($item->created_by == $user->id))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
$baseUrl = $jinput->input->server->get('REQUEST_URI', '', 'STRING');
$calledFrom = (strpos($baseUrl, 'administrator')) ? 'backend' : 'frontend';
$layout = ($calledFrom == 'frontend') ? 'default' : 'edit';
$dynamicLayout = $this->setLayout($typeParams->layout);
$dynamicLayout = $this->setLayout($this->layout);
$fieldsets_counter_deafult = 0;
$setnavigation = false;

Expand Down
8 changes: 4 additions & 4 deletions src/components/com_tjucm/site/views/itemform/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public function display($tpl = null)
}

// Set Layout to type view
$layout = isset($typeParams->layout) ? $typeParams->layout : '';
$this->layout = isset($typeParams->layout) ? $typeParams->layout : '';

if (isset($typeParams->layout) && !empty($typeParams->layout))
{
Expand Down Expand Up @@ -284,9 +284,9 @@ public function display($tpl = null)

$this->allow_auto_save = (isset($typeParams->allow_auto_save) && empty($typeParams->allow_auto_save)) ? 0 : 1;
$this->allow_draft_save = (isset($typeParams->allow_draft_save) && !empty($typeParams->allow_draft_save)) ? 1 : 0;
$this->allow_bit_rate=(isset($typeParams->bitrate_on) && !empty($typeParams->bitrate_on)) ? 1 : 0;
$this->allow_bit_rate_seconds=$typeParams->bitrate_seconds;
$this->allow_bit_rate = (isset($typeParams->bitrate_on) && !empty($typeParams->bitrate_on)) ? 1 : 0;
$this->allow_bit_rate_seconds = $typeParams->bitrate_seconds;

// Check for errors.
if (count($errors = $this->get('Errors')))
{
Expand Down
4 changes: 3 additions & 1 deletion src/components/com_tjucm/site/views/items/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ function copyItem()
'ucmTypeId' => $this->ucmTypeId,
'ucmTypeParams' => $this->ucmTypeParams,
'fieldsData' => $fieldsData,
'formObject' => $formObject
'formObject' => $formObject,
'statusColumnWidth' => $statusColumnWidth,
'listcolumn' => $this->listcolumn
)
);
}
Expand Down

0 comments on commit 555f2d0

Please sign in to comment.