Merge branch 'spidev' into 'master'

SMS Bereinigung/Responsive Anpassungen/Zeiterfassung

See merge request fronk/thetool!163
This commit is contained in:
Frank Schubert
2024-01-10 20:57:43 +00:00
10 changed files with 58 additions and 6 deletions
@@ -81,6 +81,7 @@ class TimerecordingCategoryController extends mfBaseController
$data['hourday'] = trim($r->hourday);
$data['approval'] = trim($r->approval);
$data['require_comment'] = trim($r->require_comment);
$data['only_admin'] = trim($r->only_admin);
if (!$data['name']) {
@@ -95,6 +96,9 @@ class TimerecordingCategoryController extends mfBaseController
if (!$data['require_comment']) {
$data['require_comment'] = 0;
}
if (!$data['only_admin']) {
$data['only_admin'] = 0;
}
// var_dump($_FILES);
// var_dump($upload);
@@ -7,6 +7,7 @@ class TimerecordingCategoryModel
private $hourday;
private $approval;
private $require_comment;
private $only_admin;
public static $hourday_definition = array(1 => "Uhrzeit (von/bis)", 2 => "Tage (von/bis)", 3 => "Startdatum", 4 => "Enddatum");
public static $approval_definition = array(0 => "Nein", 1 => "Ja");
public static $require_comment_definition = array(0 => "Nein", 1 => "Ja");
@@ -68,6 +68,7 @@ class UserProfileController extends mfBaseController
$id = $this->me->id;
$emailaddress = $this->me->email;
$mobile = str_replace('+', '', $this->me->mobile);
$mobile = str_replace(' ', '', $mobile);
$verification = $r->twofactor;
$User = new User($id);
@@ -207,6 +208,7 @@ class UserProfileController extends mfBaseController
$id = $this->me->id;
$emailaddress = $this->me->email;
$mobile = str_replace('+', '', $this->me->mobile);
$mobile = str_replace(' ', '', $mobile);
$verification = $r->twofactor;
$User = new User($id);
@@ -61,6 +61,7 @@ class UserTwofactor
$User = new User($id);
$emailaddress = $User->email;
$mobile = str_replace('+', '', $User->mobile);
$mobile = str_replace(' ', '', $mobile);
$data = [];
$data['twofactorcode'] = $code;