[ic] uploading images side-effect

Mike Heins mikeh@minivend.com
Tue, 28 Nov 2000 11:26:06 -0500

Quoting Mike Heins (mikeh@minivend.com):
> Quoting Marcel Montes (marcel@multimake.com):
> > After uploading images in the admin interface of the construct demo when
> > it returns
> > to the item edit page, several fields are erased (Long description, and
> > size for instance)
> > 
> > (RedHat 7, MySQL)
> Cannot duplicate.

Oops, yes I can when "new file name" option is selected.  Found and
fixed in CVS in the file lib/UI/vars/UI_STD_DBEDIT_TABLE.

Elaboration for the source-curious: the $override variable was defined
"my" outside the loop, so every field after the image one was
trashed. Moving "my $override" inside the for(@cols) loop
fixes it.

Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <heins@akopia.com>

Clothes make the man.  Naked people have little or no influence on
society.  -- Mark Twain