- Thu Jul 06, 2017 9:56 am
#793722
I want to create a trigger in PHP that will create a client folder when the project is created.
I have this error: error: **Changes to APP_FOLDER are forbidden. Please contact system administrator for more information.** after doing this query:
$sql = "INSERT INTO APP_FOLDER(FOLDER_PARENT_UID,FOLDER_NAME,FOLDER_CREATE_DATE,FOLDER_UPDATE_DATE) VALUES('$FOLDER_PARENT_UID','$FOLDER_NAME','$FOLDER_CREATE_DATE','$FOLDER_UPDATE_DATE')";
Is there a better way to do this? My problem is that there are some cases where there isn't any document to upload once the project is created but I need to transfer documents uploaded BEFORE the project was created in a path from /no_project_number/clients/documents to /clients/project_number/documents
The only way I saw it was to create an empty folder and then using a php plugin to sync the documents (this plugin works but doesn't when there is no folder to sync to)
I have this error: error: **Changes to APP_FOLDER are forbidden. Please contact system administrator for more information.** after doing this query:
$sql = "INSERT INTO APP_FOLDER(FOLDER_PARENT_UID,FOLDER_NAME,FOLDER_CREATE_DATE,FOLDER_UPDATE_DATE) VALUES('$FOLDER_PARENT_UID','$FOLDER_NAME','$FOLDER_CREATE_DATE','$FOLDER_UPDATE_DATE')";
Is there a better way to do this? My problem is that there are some cases where there isn't any document to upload once the project is created but I need to transfer documents uploaded BEFORE the project was created in a path from /no_project_number/clients/documents to /clients/project_number/documents
The only way I saw it was to create an empty folder and then using a php plugin to sync the documents (this plugin works but doesn't when there is no folder to sync to)