N°1408 - Fix Object print page for attributes dashboard

This commit is contained in:
Eric
2018-10-09 11:41:29 +02:00
parent 15671f6dd4
commit 94b4f10277
3 changed files with 4 additions and 3 deletions

View File

@@ -732,7 +732,7 @@ class RuntimeDashboard extends Dashboard
{
$aAjaxParams = $aExtraParams;
}
if (!$bEditMode)
if (!$bEditMode && !$oPage->IsPrintableVersion())
{
$sId = $this->GetId();
$sDivId = preg_replace('/[^a-zA-Z0-9_]/', '', $sId);

View File

@@ -21,7 +21,8 @@ p a, .ui-widget-content td a, p a:hover, .ui-widget-content td a:hover, p a:visi
padding-left: 0;
background: transparent;
}
body { margin:none; }
body { margin:0; }
.printable-tab {
-webkit-region-break-inside: avoid;
page-break-inside: avoid;

View File

@@ -333,7 +333,7 @@ function SetUserPreference(sPreferenceCode, sPrefValue, bPersistent) {
*/
function GetUserPreference(sPreferenceCode, sDefaultValue) {
var value = sDefaultValue;
if (oUserPreferences[sPreferenceCode] != undefined) {
if ((typeof(oUserPreferences) !== 'undefined') && (typeof(oUserPreferences[sPreferenceCode]) !== 'undefined')) {
value = oUserPreferences[sPreferenceCode];
}
return value;