[mb-commits] branch, beta, updated. MBS-5822/MBS-5742: ensure the work dialog works correctly when there are zero...

MusicBrainz Git Server <[email protected]> Tue, 05 Feb 2013 15:48:31 +0000
Newsgroups gmane.comp.audio.musicbrainz.cvs
Message-ID <E1U2kl5-0005r1-5i@wiley>
The branch, beta has been updated
       via  http://git.musicbrainz.org/gitweb/?p=musicbrainz-server/core.git;a=commit;h=2e9b2c8704b1a61913af57f7d26e8b9b5d90f4ba (commit)
      from  http://git.musicbrainz.org/gitweb/?p=musicbrainz-server/core.git;a=commit;h=1b89c8702d637f98367bf9516e17dc7de79be2b4 (commit)

Summary of changes:
 root/components/forms.tt |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2e9b2c8704b1a61913af57f7d26e8b9b5d90f4ba
Author: Ian McEwen <[email protected]>
Date:   Tue Feb 5 12:20:49 2013 -0700

    MBS-5822/MBS-5742: ensure the work dialog works correctly when there are zero ISWCs

diff --git a/root/components/forms.tt b/root/components/forms.tt
index ef8c452..950b0f2 100644
--- a/root/components/forms.tt
+++ b/root/components/forms.tt
@@ -125,7 +125,11 @@
           </div>
       </div>
       <script>
-         MB.Form.TextList ("[%- r.form.field(field_name).html_name -%]").init([% r.form.field(field_name).value.size %]);
+         [%- IF r.form.field(field_name).value.size -%]
+           MB.Form.TextList ("[%- r.form.field(field_name).html_name -%]").init([% r.form.field(field_name).value.size %]);
+         [%- ELSE -%]
+           MB.Form.TextList ("[%- r.form.field(field_name).html_name -%]").add('');
+         [%- END -%]
       </script>
 
       [% field_errors(r.form, field_name) %]

-----------------------------------------------------------------------


hooks/post-receive
-- 
mb_server