mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-02 03:19:27 +00:00
adds dms_kategorie for profil updates as an insert into statement in the dbupdate file
This commit is contained in:
@@ -124,6 +124,7 @@ export default {
|
||||
:
|
||||
//? fresh insert of new attachment
|
||||
await Vue.$fhcapi.ProfilUpdate.insertFile(formData).then(res => {
|
||||
console.log(res.data);
|
||||
return res.data?.map((file) => file.dms_id);
|
||||
})
|
||||
return result;
|
||||
|
||||
@@ -242,7 +242,7 @@ export default {
|
||||
|
||||
},
|
||||
|
||||
template: `
|
||||
template: /*html*/`
|
||||
|
||||
<div class="container-fluid text-break fhc-form" >
|
||||
|
||||
@@ -253,7 +253,6 @@ export default {
|
||||
<div class="row mb-3">
|
||||
<div class="col">
|
||||
<!-- MOBILE QUICK LINKS -->
|
||||
<quick-links :mobile="true"></quick-links>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ export default{
|
||||
|
||||
|
||||
|
||||
<div @['show.bs.collapse']="collapseOpen=true;" @['hide.bs.collapse']="collapseOpen=false;" class="mt-1 collapse" id="quickLinks">
|
||||
<div @[\`show.bs.collapse\`]="collapseOpen=true;" @[\`hide.bs.collapse\`]="collapseOpen=false;" class="mt-1 collapse" id="quickLinks">
|
||||
|
||||
<div class="list-group">
|
||||
|
||||
|
||||
@@ -89,7 +89,16 @@
|
||||
echo '<br>public.tbl_profil_update: table created';
|
||||
}
|
||||
|
||||
|
||||
if(!$result = @$db->db_query("SELECT 1 FROM campus.tbl_dms_kategorie WHERE campus.tbl_dms_kategorie.kategorie_kurzbz = 'profil_aenderung' LIMIT 1"))
|
||||
{
|
||||
|
||||
$qry = "INSERT INTO campus.tbl_dms_kategorie VALUES ('profil_aenderung','Dokumente für Profil Änderungen','Dokumente die Belegen ob man eine neue Adresse angemeldet hat oder seinen Namen geändert hat','dokumente',NULL,NULL);";
|
||||
|
||||
if(!$db->db_query($qry))
|
||||
echo '<strong>INSERT OF DMS_KATEGORIE profil_aenderung ERROR : '.$db->db_last_error().'</strong><br>';
|
||||
else
|
||||
echo '<br>INSERT OF DMS_KATEGORIE profil_aenderung was successful';
|
||||
}
|
||||
//? would add a column if the column is missing in the table
|
||||
/* if(!$result = @$db->db_query("SELECT topic FROM public.tbl_profil_update LIMIT 1"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user