Bug 18804: (bug 13501 follow-up) Fix add item form (select2)
Hard to say here, select2 adds so many elements that we need to ignore. Here we just assume that input text with an id starting with tag_952_subfield must be filled Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Lee Jamison <ldjamison@marywood.edu> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> (cherry picked from commit8035a467f0) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commitd5f1aca783) Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
This commit is contained in:
parent
9cec7d146f
commit
9c787039b2
|
|
@ -126,6 +126,10 @@ SKIP: {
|
|||
my $inputs = $driver->find_child_elements($form, '//input[@type="text"]');
|
||||
for my $input ( @$inputs ) {
|
||||
next if $input->is_hidden();
|
||||
|
||||
my $id = $input->get_attribute('id');
|
||||
next unless $id =~ m|^tag_952_subfield|;
|
||||
|
||||
$input->send_keys('t_value_bib'.$biblionumber);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue