Schnellreparatur löscht custom files !?

Moin,

v. 7.9.5

IST
In der Datei SuiteCRM/modules/AOW_Actions/actions.php wird eine mögliche Erweiterung der “actions” über folgende Zeilen ermöglicht:

if (file_exists('custom/modules/AOW_Actions/Ext/Actions/actions.ext.php')) {
    require('custom/modules/AOW_Actions/Ext/Actions/actions.ext.php');
}

Daher habe ich genau diese Datei an der entsprechenden Stelle liegen und mit Inhalt gefüllt, welcher auch funktional im CRM genutzt wird.

Fehlerablauf
Wenn ich nun im Adminmenü die “Schnellreparatur und Neuaufbau”-Funktion nutze, wird die Datei “custom/modules/AOW_Actions/Ext/Actions/actions.ext.php” gelöscht! Das ist natürlich ärgerlich und gibt mir nicht die Datensicherheit, welche ich unter dem Ordner /custom verstanden hatte.

Ich habe mir nun noch nicht alle Daten angeschaut, kann mir aber vorstellen, dass es noch 1-2 weitere gibt.

Jemand eine Idee?

Gruß
Tim

If I understand your problem correctly (using Google translate), and hoping you will understand my answer in English:

All the files under directories called “Ext” are automatically generated from other files. So you’re doing the customization in the wrong place.

I’m not sure where the originals are, but you can start by looking under custom/Extension.

If you need an advanced technique to sort things out, check this out. It will help you many times in the future.

I hope this helps. Gruß!

1 Like

Greetings pgr and thanks for your reply!

I thought it would be enough to copy the “SuiteCRM/modules/AOW_Actions/actions.php” into the custom folder, including my custom lines. Sadly said, CRM doesn’t read it.

Gonna take a look at your link and where the hell this customization part should be done.

Greetings

Auch wenns schon ne Weile her ist, wie pgr schon sagte, alles was in module/Ext drin ist, wird beim repair überschrieben.

Du müsstest die Datei dann in /custom/modules/<dein_modul> erstellen.

Ich nehme an du willst etwas ausführen nachdem ein Datensatz gespeichert worden ist.
Das geschieht in SuiteCRM über hooks.
Hier eine Einführung: http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_6.5/Module_Framework/Logic_Hooks/