PHRAS-3697 printed pdf improvement (#4063)

* field with label on print

* option to hide record information in preview when print

* add column printable

* add color picker

* patch on 4 1 6 cr4

* update locale

* bump version to 4.1.6-rc4

* fix bloc info color

* font size bloc info

* some fix

* Fallback to thumbnail when chosen subdefinition is not present or not printable
This commit is contained in:
Aina Sitraka
2022-06-23 11:13:42 +03:00
committed by GitHub
parent 878dd8c077
commit 5bd63b1c34
26 changed files with 963 additions and 646 deletions

View File

@@ -465,6 +465,7 @@ class databox extends base implements ThumbnailedElement
->set_generate_cterms((isset($field['generate_cterms']) && (string) $field['generate_cterms'] == 1))
->set_gui_editable((!isset($field['gui_editable']) || (isset($field['gui_editable']) && (string) $field['gui_editable'] == 1)))
->set_gui_visible((!isset($field['gui_visible']) || (isset($field['gui_visible']) && (string) $field['gui_visible'] == 1)))
->set_printable((!isset($field['printable']) || (isset($field['printable']) && (string) $field['printable'] == 1)))
->set_thumbtitle(isset($field['thumbtitle']) ? (string) $field['thumbtitle'] : (isset($field['thumbTitle']) ? $field['thumbTitle'] : '0'))
->set_report(isset($field['report']) ? (string) $field['report'] : '1')
->save();