Bug 36919 - t/db_dependent/Koha/Object.t produces warnings
Summary: t/db_dependent/Koha/Object.t produces warnings
Status: Pushed to stable
Alias: None
Product: Koha
Classification: Unclassified
Component: Test Suite (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low minor
Assignee: Jonathan Druart
QA Contact: Lucas Gass (lukeg)
URL:
Keywords:
Depends on:
Blocks: 25515
  Show dependency treegraph
 
Reported: 2024-05-22 09:21 UTC by Jonathan Druart
Modified: 2024-11-15 20:30 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
24.11.00,24.05.06
Circulation function:


Attachments
Bug 36919: Remove a warning from Koha/Object.t (1019 bytes, patch)
2024-05-22 09:24 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 36919: Remove another warning from Koha/Object.t (836 bytes, patch)
2024-05-22 09:24 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 36919: Remove yet another warning from Koha/Object.t (1.05 KB, patch)
2024-05-22 09:24 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 36919: Remove a warning from Koha/Object.t (1.04 KB, patch)
2024-05-23 04:16 UTC, David Nind
Details | Diff | Splinter Review
Bug 36919: Remove another warning from Koha/Object.t (883 bytes, patch)
2024-05-23 04:16 UTC, David Nind
Details | Diff | Splinter Review
Bug 36919: Remove yet another warning from Koha/Object.t (1.10 KB, patch)
2024-05-23 04:16 UTC, David Nind
Details | Diff | Splinter Review
Bug 36919: Remove a warning from Koha/Object.t (1.10 KB, patch)
2024-08-27 16:40 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 36919: Remove another warning from Koha/Object.t (940 bytes, patch)
2024-08-27 16:41 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 36919: Remove yet another warning from Koha/Object.t (1.15 KB, patch)
2024-08-27 16:41 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2024-05-22 09:21:41 UTC
t/db_dependent/Koha/Object.t .. 3/22 Use of uninitialized value in numeric eq (==) at /kohadevbox/koha/Koha/Patron.pm line 446.                                                                                      t/db_dependent/Koha/Object.t .. 8/22 C4::Context->userenv not defined! at /kohadevbox/koha/Koha/Patron.pm line 1890.                                                                                                 
C4::Context->userenv not defined! at /kohadevbox/koha/Koha/Patron.pm line 1890.
t/db_dependent/Koha/Object.t .. 9/22 DBIx::Class::Storage::DBI::insert(): Missing value for primary key column 'currency' on Currency - perhaps you forgot to set its 'is_auto_increment' attribute during add_column
s()? Treating 'currency' implicitly as an autoinc, and attempting value retrieval at /kohadevbox/koha/Koha/Object.pm line 172
t/db_dependent/Koha/Object.t .. ok
Comment 1 Jonathan Druart 2024-05-22 09:24:00 UTC
Created attachment 167014 [details] [review]
Bug 36919: Remove a warning from Koha/Object.t

Use of uninitialized value in numeric eq (==) at /kohadevbox/koha/Koha/Patron.pm line 446.
Comment 2 Jonathan Druart 2024-05-22 09:24:03 UTC
Created attachment 167015 [details] [review]
Bug 36919: Remove another warning from Koha/Object.t

C4::Context->userenv not defined! at /kohadevbox/koha/Koha/Patron.pm
line 1890.
Comment 3 Jonathan Druart 2024-05-22 09:24:05 UTC
Created attachment 167016 [details] [review]
Bug 36919: Remove yet another warning from Koha/Object.t

DBIx::Class::Storage::DBI::insert(): Missing value for primary key column 'currency' on Currency - perhaps you forgot to set its 'is_auto_increment' attribute during add_columns()? Treating 'currency' implicitly as an autoinc, and attempting value retrieval at /kohadevbox/koha/Koha/Object.pm line 172
Comment 4 David Nind 2024-05-23 04:16:10 UTC
Created attachment 167057 [details] [review]
Bug 36919: Remove a warning from Koha/Object.t

Use of uninitialized value in numeric eq (==) at /kohadevbox/koha/Koha/Patron.pm line 446.

Signed-off-by: David Nind <david@davidnind.com>
Comment 5 David Nind 2024-05-23 04:16:12 UTC
Created attachment 167058 [details] [review]
Bug 36919: Remove another warning from Koha/Object.t

C4::Context->userenv not defined! at /kohadevbox/koha/Koha/Patron.pm
line 1890.

Signed-off-by: David Nind <david@davidnind.com>
Comment 6 David Nind 2024-05-23 04:16:14 UTC
Created attachment 167059 [details] [review]
Bug 36919: Remove yet another warning from Koha/Object.t

DBIx::Class::Storage::DBI::insert(): Missing value for primary key column 'currency' on Currency - perhaps you forgot to set its 'is_auto_increment' attribute during add_columns()? Treating 'currency' implicitly as an autoinc, and attempting value retrieval at /kohadevbox/koha/Koha/Object.pm line 172
Signed-off-by: David Nind <david@davidnind.com>
Comment 7 Lucas Gass (lukeg) 2024-08-27 16:40:58 UTC
Created attachment 170777 [details] [review]
Bug 36919: Remove a warning from Koha/Object.t

Use of uninitialized value in numeric eq (==) at /kohadevbox/koha/Koha/Patron.pm line 446.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 8 Lucas Gass (lukeg) 2024-08-27 16:41:01 UTC
Created attachment 170778 [details] [review]
Bug 36919: Remove another warning from Koha/Object.t

C4::Context->userenv not defined! at /kohadevbox/koha/Koha/Patron.pm
line 1890.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 9 Lucas Gass (lukeg) 2024-08-27 16:41:04 UTC
Created attachment 170779 [details] [review]
Bug 36919: Remove yet another warning from Koha/Object.t

DBIx::Class::Storage::DBI::insert(): Missing value for primary key column 'currency' on Currency - perhaps you forgot to set its 'is_auto_increment' attribute during add_columns()? Treating 'currency' implicitly as an autoinc, and attempting value retrieval at /kohadevbox/koha/Koha/Object.pm line 172
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 10 Katrin Fischer 2024-08-29 16:16:57 UTC
Pushed for 24.11!

Well done everyone, thank you!
Comment 11 Lucas Gass (lukeg) 2024-11-15 20:30:05 UTC
Backported to 24.05.x for upcoming 24.05.06