In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Dependency Graph View Issue ] Relation Graph ] Vertical ]
related to child of duplicate of

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

Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker