Fixed Notice error

This commit is contained in:
CiviWare Solutions 2018-09-05 02:27:15 +05:30
parent ae7237f49b
commit 8dd89a41fb

View File

@ -245,7 +245,7 @@ function entitytemplates_civicrm_pre($op, $objectName, $id, &$params) {
*
*/
function entitytemplates_civicrm_validateForm($formName, &$fields, &$files, &$form, &$errors) {
if ($form->_entityTemplate) {
if (property_exists($form, '_entityTemplate') && $form->_entityTemplate) {
if (!empty($fields['entity_template_title'])) {
$params = [
'title' => $fields['entity_template_title'],