https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15326 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nick@bywatersolutions.com --- Comment #115 from Nick Clemens <nick@bywatersolutions.com> --- 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.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org