Fix preview of Image fields in the editThing screen.
This commit is contained in:
parent
23785a7707
commit
5574c9cc34
2 changed files with 7 additions and 0 deletions
|
|
@ -1661,6 +1661,9 @@ sub www_editThing {
|
|||
if ($field->{fieldType} eq "File"){
|
||||
$formElement = "<input type='file' name='file'>";
|
||||
}
|
||||
if ($field->{fieldType} eq "Image"){
|
||||
$formElement = "<input type='file' name='image'>";
|
||||
}
|
||||
else{
|
||||
$formElement = $self->getFormElement($field);
|
||||
}
|
||||
|
|
@ -2092,6 +2095,9 @@ sub www_editFieldSave {
|
|||
if ($properties{fieldType} eq "File"){
|
||||
$formElement = "<input type='file' name='file'>";
|
||||
}
|
||||
elsif ($properties{fieldType} eq "Image"){
|
||||
$formElement = "<input type='file' name='image'>";
|
||||
}
|
||||
else{
|
||||
$formElement = $self->getFormElement(\%properties);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue