mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 09:22:22 +00:00
- FAS_UDF->index declared missing array data
- public/js/UDFWidget.js changed save button caption to "Speichern"
This commit is contained in:
@@ -7,17 +7,17 @@ class FAS_UDF extends Auth_Controller
|
||||
const FAS_UDF_SESSION_NAME = 'fasUdfSessionName';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct(
|
||||
{
|
||||
parent::__construct(
|
||||
array(
|
||||
'index' => 'basis/person:r',
|
||||
'saveUDF' => 'basis/person:rw'
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
$this->load->model('person/Person_model', 'PersonModel');
|
||||
$this->load->model('crm/Prestudent_model', 'PrestudentModel');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -27,6 +27,8 @@ class FAS_UDF extends Auth_Controller
|
||||
$person_id = $this->input->get('person_id');
|
||||
$prestudent_id = $this->input->get('prestudent_id');
|
||||
|
||||
$data = array();
|
||||
|
||||
if (isset($person_id) && is_numeric($person_id))
|
||||
{
|
||||
if ($this->PersonModel->hasUDF())
|
||||
@@ -50,3 +52,4 @@ class FAS_UDF extends Auth_Controller
|
||||
$this->load->view('system/fas_udf', $data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ var FHC_UDFWidget = {
|
||||
|
||||
$("div[type*='UDFWidget']").each(function(i, udfWidgetDiv) {
|
||||
|
||||
var saveButton = $('<input type="button" value="Save UDFs">');
|
||||
var saveButton = $('<input type="button" value="Speichern">');
|
||||
|
||||
saveButton.on('click', function() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user