https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28632
--- Comment #8 from Jonathan Druart <[email protected]> --- We could have a t::lib::Compare module (we already have t::lib::Dates::compare), with a t::lib::Compare::hashrefs subroutine. It will deeply compare the 2 hashrefs passed in parameter. With a 'skip' option we could pass a list of keys to skip. As it does not answer your need, we may better have a 'datatype' option with a list of key to treat as dates. t::lib::Compare::hashrefs($hashref1, $hashref2, { datatype => { updated_on => 'date' } } ) We loop over the keys and when we find 'updated_on' we compare using t::lib::Compare::Dates. What do you think? -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
