mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 17:32:18 +00:00
- Removed /core from URL
- If UDf are not set in DB UDF view will not display them - Removed placeholder from multiple dropdown widget - Dropdown widget has null value as placeholder - Added permission system/udf to checksystem
This commit is contained in:
@@ -55,18 +55,24 @@ class UDF extends VileSci_Controller
|
||||
|
||||
if (isset($person_id) && is_numeric($person_id))
|
||||
{
|
||||
$person = $this->PersonModel->load($person_id);
|
||||
$personUdfs = $this->PersonModel->getUDFs();
|
||||
$personUdfs['person_id'] = $person_id;
|
||||
$data['personUdfs'] = $personUdfs;
|
||||
if ($this->PersonModel->hasUDF())
|
||||
{
|
||||
$person = $this->PersonModel->load($person_id);
|
||||
$personUdfs = $this->PersonModel->getUDFs();
|
||||
$personUdfs['person_id'] = $person_id;
|
||||
$data['personUdfs'] = $personUdfs;
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($prestudent_id) && is_numeric($prestudent_id))
|
||||
{
|
||||
$prestudent = $this->PrestudentModel->load($prestudent_id);
|
||||
$prestudentUdfs = $this->PrestudentModel->getUDFs();
|
||||
$prestudentUdfs['prestudent_id'] = $prestudent_id;
|
||||
$data['prestudentUdfs'] = $prestudentUdfs;
|
||||
if ($this->PrestudentModel->hasUDF())
|
||||
{
|
||||
$prestudent = $this->PrestudentModel->load($prestudent_id);
|
||||
$prestudentUdfs = $this->PrestudentModel->getUDFs();
|
||||
$prestudentUdfs['prestudent_id'] = $prestudent_id;
|
||||
$data['prestudentUdfs'] = $prestudentUdfs;
|
||||
}
|
||||
}
|
||||
|
||||
$this->load->view('system/udf', $data);
|
||||
|
||||
Reference in New Issue
Block a user