Fix preview of Image fields in the editThing screen.

This commit is contained in:
Colin Kuskie 2009-01-02 19:51:04 +00:00
parent 23785a7707
commit 5574c9cc34
2 changed files with 7 additions and 0 deletions

View file

@ -23,6 +23,7 @@
- fixed #8993: Gallery Image Details Overlap Image
- fixed #9380: CoolMenus template - invalid markup affecting page layouts
- fixed #9387: Asset Manager breaks navigating into a Gallery Album
- fixed #9001: Thingy add image broken
7.6.7
- fixed #9263: Thingy possibleValues processing, and List type autodetection.

View file

@ -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);
}