mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
BugFix
This commit is contained in:
@@ -15,12 +15,12 @@ class Seed_Vorlage
|
||||
echo "Seeding Standard templates (Vorlage) ";
|
||||
// OEen ohne Eltern holen
|
||||
$query = 'SELECT oe_kurzbz FROM public.tbl_organisationseinheit WHERE oe_parent_kurzbz IS NULL;';
|
||||
$oe = $this->db->query($query)->result();
|
||||
$oe = $this->fhc->db->query($query)->result();
|
||||
|
||||
// Insert Template MailRegistration
|
||||
$query= "INSERT INTO public.tbl_vorlage VALUES ('MailRegistration', 'eMail zur Registrierung', NULL, 'text/html', '{ \"\$schema\": \"http://json-schema.org/draft-03/schema#\", \"title\": \"Person\", \"type\": \"object\", \"properties\": { \"anrede\": { \"type\": \"string\", \"enum\": [ \"Herr\", \"Frau\" ], \"default\": \"Herr\" }, \"vorname\": { \"type\": \"string\", \"description\": \"Firstname\", \"minLength\": 2, \"default\": \"Vorname\" }, \"nachname\": { \"type\": \"string\", \"description\": \"Surename\", \"minLength\": 2, \"default\": \"Nachname\" }, \"code\": { \"type\": \"string\", \"description\": \"Accesscode\", \"minLength\": 6, \"default\": \"1q2w3e4r5t6z7u8i9o0\" }, \"link\": { \"type\": \"string\", \"description\": \"LoginURL\", \"minLength\": 6, \"default\": \"https://cis.fhcomplete.org/addon/aufnahme/cis/login/\" } }}');
|
||||
";
|
||||
if (! $this->db->simple_query($query)
|
||||
if (! $this->fhc->db->simple_query($query))
|
||||
echo "Error adding Template MailRegistration!";
|
||||
|
||||
// Insert Vorlagetext
|
||||
@@ -32,7 +32,7 @@ class Seed_Vorlage
|
||||
<p>Unter folgenden Link können sie sich direkt für unser Service einloggen: <a title=\"LoginLink\" href=\"{link}{code}\">{link}{code}</a></p>
|
||||
<p>Mit freundlichen Grüßen,<br>FH Technikum Wien</p>', '$o->oe_kurzbz');
|
||||
";
|
||||
if ($this->db->simple_query($query))
|
||||
if ($this->fhc->db->simple_query($query))
|
||||
echo 'Added Tamplate MailRegistration for OE:'.$o->oe_kurzbz.' ';
|
||||
}
|
||||
|
||||
|
||||
@@ -83,6 +83,7 @@ $berechtigungen = array(
|
||||
array('basis/firma','Firmenverwaltung'),
|
||||
array('basis/firma:begrenzt','Firmenverwaltung'),
|
||||
array('basis/infoscreen','Infoscreenverwaltung'),
|
||||
array('basis/message','Nachrichten'),
|
||||
array('basis/moodle','basis/moodle'),
|
||||
array('basis/news','Newsverwaltung'),
|
||||
array('basis/notiz','Notizen'),
|
||||
|
||||
Reference in New Issue
Block a user