Hey, any idea how to make possible to clear date from inline edit? My entity have date field, nullable=true. On datagrid when I edit and clear any existing date, cannot save empty value. With overrided validation rules, still nothing:
YAML
1
2
3
4
5
6
dateTest:
label: Date
frontend_type: date
inline_editing:
validation_rules:
NotBlank: false
date-editor-view.js looks ok, cannot localize problem, any help will be appreciate.
Steps to reproduce:
1. create grid with date field, and inline edit on, 2. setup any date, 3. try to set empty field – impossible
Its not a valid here, because doesn`t work :) But this is the right way to pass validator to inline edit js scripts right? Can you be more specific about validation groups?
This reply was modified 5 years, 11 months ago by Dawid.
Problem is also when I edit date on any form. Field is not required but empty value is not saved. Oro date field create fake date field and dont pass value if empty to original one
It looks like a bug of DateTimePickerView. What version of Oro do you use? In latest version DateTimeEditor works fine. Could you confirm that similar to your case works here https://demo.orocrm.com/desktop/task ?
Hi, thank you for this answer! I have 2.5.0 and cannot set empty task date. But here I see it works, so it was fixed on 2.6? Or maybe on 3.0, I see is 3.0 beta there
This reply was modified 5 years, 11 months ago by Dawid.
We collect cookie information with a goal to provide you with the best user experience. By using this website, you agree to our use of cookies. Read Oro Inc.’s Cookie policy.
We collect cookie information with a goal to provide you with the best user experience. By using this website, you agree to our use of cookies. Read Oro Inc.’s Cookie policy.