diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-19 10:51:27 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-19 10:51:27 -0700 |
commit | 09f998e7a5a58720636c7b1140279b5efbdb33c6 (patch) | |
tree | 40a0b2ff30ca182e33d07eebcb7b21c9a2a7d755 /modules | |
parent | cf89015a29f41321e49ea8024cc33bb0d6c68df1 (diff) |
On the edit album form, add dirname and slug asa hidden fields, so that when the edits are being validated on input, the fields are found and can be referenced
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/helpers/album.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gallery/helpers/album.php b/modules/gallery/helpers/album.php index dfb1e66d..9cd746d7 100644 --- a/modules/gallery/helpers/album.php +++ b/modules/gallery/helpers/album.php @@ -135,6 +135,9 @@ class album_Core { ->error_messages( "not_url_safe", t("The internet address should contain only letters, numbers, hyphens and underscores")); + } else { + $group->hidden("dirname")->value($parent->name); + $group->hidden("slug")->value($parent->slug); } $sort_order = $group->group("sort_order", array("id" => "gAlbumSortOrder")) |