Fix link translation of
This commit is contained in:
parent
6cf368189f
commit
53bbfcff6b
@ -1398,7 +1398,7 @@ if ($action == 'updatemeta')
|
|||||||
$objectpage->keywords = GETPOST('WEBSITE_KEYWORDS', 'alpha');
|
$objectpage->keywords = GETPOST('WEBSITE_KEYWORDS', 'alpha');
|
||||||
$objectpage->lang = GETPOST('WEBSITE_LANG', 'aZ09');
|
$objectpage->lang = GETPOST('WEBSITE_LANG', 'aZ09');
|
||||||
$objectpage->htmlheader = trim(GETPOST('htmlheader', 'none'));
|
$objectpage->htmlheader = trim(GETPOST('htmlheader', 'none'));
|
||||||
$objectpage->fk_page = GETPOST('pageidfortranslation', 'int');
|
$objectpage->fk_page = (GETPOST('pageidfortranslation', 'int') > 0 ? GETPOST('pageidfortranslation', 'int') : 0);
|
||||||
|
|
||||||
$newdatecreation = dol_mktime(GETPOST('datecreationhour', 'int'), GETPOST('datecreationmin', 'int'), GETPOST('datecreationsec', 'int'), GETPOST('datecreationmonth', 'int'), GETPOST('datecreationday', 'int'), GETPOST('datecreationyear', 'int'));
|
$newdatecreation = dol_mktime(GETPOST('datecreationhour', 'int'), GETPOST('datecreationmin', 'int'), GETPOST('datecreationsec', 'int'), GETPOST('datecreationmonth', 'int'), GETPOST('datecreationday', 'int'), GETPOST('datecreationyear', 'int'));
|
||||||
if ($newdatecreation) $objectpage->date_creation = $newdatecreation;
|
if ($newdatecreation) $objectpage->date_creation = $newdatecreation;
|
||||||
@ -3061,10 +3061,9 @@ if ($action == 'editmeta' || $action == 'createcontainer')
|
|||||||
}
|
}
|
||||||
elseif ($result > 0)
|
elseif ($result > 0)
|
||||||
{
|
{
|
||||||
$translationof = 0;
|
$translationof = $objectpage->fk_page;
|
||||||
//$translationof = $sourcepage->id;
|
|
||||||
print '<span class="opacitymedium">'.$langs->trans('ThisPageIsTranslationOf').'</span> ';
|
print '<span class="opacitymedium">'.$langs->trans('ThisPageIsTranslationOf').'</span> ';
|
||||||
print $formwebsite->selectContainer($website, 'pageidfortranslation', $translationof, 1, $action, 'minwidth300');
|
print $formwebsite->selectContainer($website, 'pageidfortranslation', ($translationof ? $translationof : -1), 1, $action, 'minwidth300', array($objectpage->id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user