https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15326
Nick Clemens <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #115 from Nick Clemens <[email protected]> --- I did what I could to move this along, rebased, cleared QA errors, fixed filters Issues I had: 1 - The content field is hidden when I try to make a new page 2 - I cannot add a page under strict mode - the call to update_or_create doesn't like id as '' - if i try ot make it undef when not set, then the dbix gets upset about using key primary with no values It appears that title_link is enforced as unique in the module, though not in the table. If we do enforce this we can add a new constraint on that and use if for update/create but it requires more work https://metacpan.org/pod/DBIx::Class::ResultSet#update_or_create Note: Take care when using update_or_create with a table having columns with default values that you intend to be automatically supplied by the database (e.g. an auto_increment primary key column). In normal usage, the value of such columns should NOT be included at all in the call to update_or_create, even when set to undef. -- 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/
