Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI4 Item attributes not working properly #3900

Closed
odiea opened this issue Dec 18, 2023 · 1 comment
Closed

CI4 Item attributes not working properly #3900

odiea opened this issue Dec 18, 2023 · 1 comment
Assignees
Labels
bug CodeIgniter4 Issue relates to the conversion to CodeIgniter 4 item attributes

Comments

@odiea
Copy link
Collaborator

odiea commented Dec 18, 2023

The partial/datepicker_locale is now showing a starting date of 1899. It is also showing minutes.
view('partial/datepicker_locale', ['config' => '{ minView: 2, format: "'.($config['dateformat'] . '"}')]) Appears not to be working any longer as it did in Ci3. It shows the following error when trying to save a Date in the date format only.
CRITICAL - 2023-12-17 17:25:33 --> Call to a member function format() on null
in APPPATH\Models\Attribute.php on line 892.
1 APPPATH\Controllers\Items.php(766): App\Models\Attribute->save_value('12/17/2023', 31, 63, '214', 'DATE')
2 SYSTEMPATH\CodeIgniter.php(942): App\Controllers\Items->postSave(63)
3 SYSTEMPATH\CodeIgniter.php(502): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Items))
4 SYSTEMPATH\CodeIgniter.php(361): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
5 FCPATH\index.php(79): CodeIgniter\CodeIgniter->run()

@odiea odiea added CodeIgniter4 Issue relates to the conversion to CodeIgniter 4 bug labels Dec 18, 2023
@jekkos jekkos self-assigned this Apr 17, 2024
@jekkos
Copy link
Member

jekkos commented Apr 30, 2024

Seems to work fine in dev version

@jekkos jekkos closed this as completed Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug CodeIgniter4 Issue relates to the conversion to CodeIgniter 4 item attributes
Projects
None yet
Development

No branches or pull requests

2 participants