Changeset 5856
- Timestamp:
- 11/04/07 18:24:22 (1 year ago)
- Files:
-
- branches/1.0/lib/helper/ObjectAdminHelper.php (modified) (2 diffs)
- branches/1.0/test/functional/backend/m2mTest.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/lib/helper/ObjectAdminHelper.php
r3746 r5856 73 73 } 74 74 75 // remove non html option 76 unset($options['through_class']); 75 77 // override field name 76 78 unset($options['control_name']); … … 127 129 // get the lists of objects 128 130 list($objects, $objects_associated, $ids) = _get_object_list($object, $method, $options, $callback); 131 // remove non html option 132 unset($options['through_class']); 129 133 // override field name 130 134 unset($options['control_name']); branches/1.0/test/functional/backend/m2mTest.php
r4205 r5856 37 37 checkResponseElement('link[href][media]', 2)-> 38 38 checkResponseElement('div.form-row label', 'Author article:', array('position' => 2))-> 39 checkResponseElement('div.form-row select[name="unassociated_author_article[]"][through_class]', false)-> 39 40 checkResponseElement('div.form-row select[name="unassociated_author_article[]"]', true, array('position' => 2))-> 40 41 checkResponseElement('div.form-row select[name="unassociated_author_article[]"] option', 1)-> 42 checkResponseElement('div.form-row select[name="associated_author_article[]"][through_class]', false)-> 41 43 checkResponseElement('div.form-row select[name="associated_author_article[]"]', true, array('position' => 2))-> 42 44 checkResponseElement('div.form-row select[name="associated_author_article[]"] option', 2)-> … … 46 48 checkResponseElement('script[src]', false)-> 47 49 checkResponseElement('div.form-row label', 'Author article:', array('position' => 2))-> 50 checkResponseElement('div.form-row select[name="associated_author_article[]"][through_class]', false)-> 48 51 checkResponseElement('div.form-row select[name="associated_author_article[]"][multiple="multiple"]', true)-> 49 52 checkResponseElement('div.form-row select[name="associated_author_article[]"] option', 3)-> … … 56 59 checkResponseElement('div.form-row input[type="checkbox"][name="associated_author_article[]"][checked="checked"]', 2)-> 57 60 checkResponseElement('div.form-row input[type="checkbox"][name="associated_author_article[]"]', 3)-> 61 checkResponseElement('div.form-row input[type="checkbox"][name="associated_author_article[]"][through_class]', false)-> 58 62 checkResponseElement('div.form-row label[for="associated_author_article_1"]')-> 59 63 checkResponseElement('div.form-row label[for="associated_author_article_2"]')->