mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Fix #1367 : Discard readonly fields in editing templates
This commit is contained in:
@@ -1520,6 +1520,9 @@ function preset_copy()
|
|||||||
{
|
{
|
||||||
if(p4.edit.T_fields[i]._status == 1)
|
if(p4.edit.T_fields[i]._status == 1)
|
||||||
{
|
{
|
||||||
|
if (p4.edit.T_fields[i].readonly) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
var c = p4.edit.T_fields[i]._value === "" ? "" : "checked=\"1\"";
|
var c = p4.edit.T_fields[i]._value === "" ? "" : "checked=\"1\"";
|
||||||
var v = p4.edit.T_fields[i]._value;
|
var v = p4.edit.T_fields[i]._value;
|
||||||
html += "<div><label class=\"checkbox\" for=\"new_preset_" + p4.edit.T_fields[i].name + "\"><input type=\"checkbox\" class=\"checkbox\" id=\"new_preset_" + p4.edit.T_fields[i].name + "\" value=\"" + i + "\" " + c + "/>" + "<b>" + p4.edit.T_fields[i].label + " : </b></label> ";
|
html += "<div><label class=\"checkbox\" for=\"new_preset_" + p4.edit.T_fields[i].name + "\"><input type=\"checkbox\" class=\"checkbox\" id=\"new_preset_" + p4.edit.T_fields[i].name + "\" value=\"" + i + "\" " + c + "/>" + "<b>" + p4.edit.T_fields[i].label + " : </b></label> ";
|
||||||
|
Reference in New Issue
Block a user