Anonymous | Login | Signup for a new account | 2023-05-29 07:52 CDT | ![]() |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Dependency Graph | [ View Issue ] [ Relation Graph ] [ Vertical ] | |||
|
||||
|
Viewing Issue Simple Details | |||||
ID | Category | Type | Reproducibility | Date Submitted | Last Update |
0001104 | [In-Portal CMS] Data Management | bug report | always | 2011-08-17 05:05 | 2011-09-19 16:08 |
Reporter | alex | View Status | public | ||
Assigned To | alex | ||||
Priority | normal | Resolution | fixed | ||
Status | closed | ||||
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. |
||||
Additional Information |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Web Development by Intechnic![]() In-Portal Open Source CMS |