Fix two bugs with edit branch. One for creating the metadata field forms,

and another in processing them.
This commit is contained in:
Colin Kuskie 2009-06-22 03:23:25 +00:00
parent 74d50ead2f
commit 39d409f354
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,6 @@
7.7.12
- Updated auth to allow sending back of non-text/html mime types.
- fixed #10564: edit branch progress bar goes kablooey
7.7.11
- Fixed a bug where empty version tags were not deleted. (Martin Kamerbeek / Oqapi)

View file

@ -223,6 +223,7 @@ sub www_editBranch {
$options = "|" . $i18n->get("Select") . "\n" . $options;
}
$tabform->getTab("meta")->dynamicField(
fieldType => $fieldType,
name => "metadata_".$meta->{$field}{fieldId},
label => $meta->{$field}{fieldName},
uiLevel => 5,
@ -316,8 +317,8 @@ sub www_editBranchSave {
else {
$revision = $descendant;
}
foreach my $form ($form->param) {
if ($form =~ /^metadata_(.*)$/) {
foreach my $param ($form->param) {
if ($param =~ /^metadata_(.*)$/) {
my $fieldName = $1;
if ($form->yesNo("change_metadata_".$fieldName)) {
$revision->updateMetaData($fieldName,$form->process($form));