Skip to content

Commit

Permalink
[4.0] Solving Duplicate ID ( #25088 ) Multilingual (#25096)
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 authored and wilsonge committed Jul 23, 2019
1 parent 57c3b9e commit 9fbc0e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions administrator/components/com_content/tmpl/article/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@

<?php echo HTMLHelper::_('uitab.endTabSet'); ?>

<?php // Creating 'id' hiddenField to cope with com_associations sidebyside loop ?>
<?php if ($params->get('show_publishing_options', 1) == 0) : ?>
<?php $hidden_fields = $this->form->getInput('id'); ?>
<div class="hidden"><?php echo $hidden_fields; ?></div>
<?php endif; ?>

<input type="hidden" name="task" value="">
<input type="hidden" name="return" value="<?php echo $input->getCmd('return'); ?>">
<input type="hidden" name="forcedLanguage" value="<?php echo $input->get('forcedLanguage', '', 'cmd'); ?>">
Expand Down
2 changes: 0 additions & 2 deletions layouts/joomla/edit/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,13 @@
'featured',
'sticky',
'access',
'id',
'language',
'tags',
'note',
'version_note',
);

$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields[] = 'id';

if (!$saveHistory)
{
Expand Down

0 comments on commit 9fbc0e5

Please sign in to comment.