In-Portal Issue Tracker - In-Portal CMS
|
|||||||||||||||
Viewing Issue Advanced Details | |||||||||||||||
|
|||||||||||||||
ID: | Category: | Type: | Reproducibility: | Date Submitted: | Last Update: | ||||||||||
1104 | [In-Portal CMS] Data Management | bug report | always | 2011-08-17 05:05 | 2011-09-19 16:08 | ||||||||||
|
|||||||||||||||
Reporter: | alex | Platform: | |||||||||||||
Assigned To: | alex | OS: | |||||||||||||
Priority: | normal | OS Version: | |||||||||||||
Status: | closed | Product Version: | 5.1.3-RC2 | ||||||||||||
Product Build: | Resolution: | fixed | |||||||||||||
ETA: | none | Fixed in Version: | 5.1.3 | ||||||||||||
Reference: | https://groups.google.com/d/topic/in-portal-bugs/EDa93FXm49c/discussion | ||||||||||||||
Change Log Message: | Fixes some code of OnAfterConfigRead event was overwritten from system preset problem | ||||||||||||||
Estimate Points: | 0 | ||||||||||||||
|
|||||||||||||||
Summary: | 0001104: Impossible to use OnAfterConfigRead event, when there is a system preset for a given unit config | ||||||||||||||
Description: |
It's impossible to use OnAfterConfigRead event, when there is a system preset for a given unit config. For example this code in EUserEventHandler::OnAfterConfigRead method, used to make user's first name required: $fields = $this->Application->getUnitOption($event->Prefix, 'Fields'); $fields['FirstName']['required'] = 1; $this->Application->setUnitOption($event->Prefix, 'Fields', $fields); has no effect, when current system preset (e.g. "simple" system preset) has "users_u.php" that resets all required fields anyway. To solve that I'm proposing to apply system preset imposed changed before calling OnAfterConfigRead event. This way any code in OnAfterConfigRead even will override whatever system preset is imposing. That's how it worked before system presets were invented. |
||||||||||||||
Steps To Reproduce: | |||||||||||||||
Additional Information: | |||||||||||||||
Relationships |
| ||||||||||||||
Attached Files: |
![]() http://tracker.in-portal.org/file_download.php?file_id=1108&type=bug |
||||||||||||||
|
|||||||||||||||
Issue History | |||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||
2011-09-19 16:08 | alex | Note Added: 0003789 | |||||||||||||
2011-09-19 16:08 | alex | Status | resolved => closed | ||||||||||||
2011-09-02 07:30 | alex | Relationship added | related to 0000964 | ||||||||||||
2011-08-24 02:39 | alex | Note Added: 0003691 | |||||||||||||
2011-08-24 02:39 | alex | Status | reviewed and tested => resolved | ||||||||||||
2011-08-24 02:39 | alex | Fixed in Version | => 5.1.3 | ||||||||||||
2011-08-24 02:39 | alex | Resolution | open => fixed | ||||||||||||
2011-08-24 02:39 | alex | Assigned To | !COMMUNITY => alex | ||||||||||||
2011-08-24 02:39 | alex | Changeset attached | 5.1.x r14506 | ||||||||||||
2011-08-23 18:02 | Dmitry | Note Added: 0003684 | |||||||||||||
2011-08-23 18:02 | Dmitry | Status | needs testing => reviewed and tested | ||||||||||||
2011-08-17 05:09 | alex | Relationship added | child of 0000199 | ||||||||||||
2011-08-17 05:06 | alex | Assigned To | => !COMMUNITY | ||||||||||||
2011-08-17 05:06 | alex | Developer | => alex | ||||||||||||
2011-08-17 05:06 | alex | Status | active => needs testing | ||||||||||||
2011-08-17 05:06 | alex | Reference | => https://groups.google.com/d/topic/in-portal-bugs/EDa93FXm49c/discussion | ||||||||||||
2011-08-17 05:05 | alex | New Issue | |||||||||||||
2011-08-17 05:05 | alex | File Added: apply_system_presets_before_onafterconfigread_event_called.patch | |||||||||||||
2011-08-17 05:05 | alex | Change Log Message | => Fixes some code of OnAfterConfigRead event was overwritten from system preset problem |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|