@@ -49,7 +49,7 @@ |
||
49 | 49 | } |
50 | 50 | } |
51 | 51 | if ($this->relations_email && '-' !== $this->relations_email) { |
52 | - [$relatedModule,$relatedFieldName,$onlyFirst] = array_pad(explode('::', $this->relations_email), 3, false); |
|
52 | + [$relatedModule, $relatedFieldName, $onlyFirst] = array_pad(explode('::', $this->relations_email), 3, false); |
|
53 | 53 | $relationListView = Vtiger_RelationListView_Model::getInstance($recordModel, $relatedModule); |
54 | 54 | $relationListView->setFields(['id', $relatedFieldName]); |
55 | 55 | $relationListView->set('search_key', $relatedFieldName); |
@@ -86,7 +86,7 @@ |
||
86 | 86 | 'TABLOID' => [11.00, 17.00], // = ( 279 x 432 ) mm = ( 11.00 x 17.00 ) in |
87 | 87 | 'EXECUTIVE' => [7.25, 10.50], // = ( 184 x 267 ) mm = ( 7.25 x 10.50 ) in |
88 | 88 | 'FOLIO' => [8.50, 13.00], // = ( 216 x 330 ) mm = ( 8.50 x 13.00 ) in |
89 | - 'B' => [5.04, 7.80], // = ( 128 x 198 ) mm = ( 5.04 x 7.80 ) in |
|
89 | + 'B' => [5.04, 7.80], // = ( 128 x 198 ) mm = ( 5.04 x 7.80 ) in |
|
90 | 90 | 'A' => [4.37, 7.00], // = ( 111 x 178 ) mm = ( 4.37 x 7.00 ) in |
91 | 91 | 'DEMY' => [8.50, 5.31], // = ( 135 x 216 ) mm = ( 8.50 x 5.31 ) in |
92 | 92 | 'ROYAL' => [6.02, 9.21], // = ( 153 x 234 ) mm = ( 6.02 x 9.21 ) in |
@@ -24,12 +24,12 @@ |
||
24 | 24 | public static $allFields = [ |
25 | 25 | 'module_name', 'status', 'generator', 'primary_name', 'secondary_name', 'meta_author', 'meta_keywords', 'metatags_status', 'meta_subject', 'meta_title', |
26 | 26 | 'page_format', 'margin_chkbox', 'margin_top', 'margin_bottom', 'margin_left', 'margin_right', 'header_height', 'footer_height', 'page_orientation', |
27 | - 'language', 'filename', 'visibility', 'default', 'header_content', 'body_content', 'footer_content', 'conditions', |
|
28 | - 'watermark_type', 'watermark_text', 'watermark_angle', 'template_members', 'watermark_image', 'one_pdf', 'type', 'styles', |
|
27 | + 'language', 'filename', 'visibility', 'default', 'header_content', 'body_content', 'footer_content', 'conditions', |
|
28 | + 'watermark_type', 'watermark_text', 'watermark_angle', 'template_members', 'watermark_image', 'one_pdf', 'type', 'styles', |
|
29 | 29 | ]; |
30 | 30 | |
31 | 31 | public static $step1Fields = ['status', 'generator', 'primary_name', 'secondary_name', 'module_name', 'metatags_status', 'meta_subject', 'meta_title', 'meta_author', 'meta_keywords', 'page_format', 'margin_chkbox', 'margin_top', 'margin_bottom', 'margin_left', 'margin_right', 'header_height', 'footer_height', 'page_orientation', 'language', 'filename', 'visibility', 'default', 'one_pdf', 'template_members', 'watermark_type', 'watermark_text', 'watermark_image', 'watermark_angle']; |
32 | - public static $step2Fields = ['module_name', 'header_content', 'module_name', 'body_content', 'footer_content', 'styles']; |
|
32 | + public static $step2Fields = ['module_name', 'header_content', 'module_name', 'body_content', 'footer_content', 'styles']; |
|
33 | 33 | public static $step3Fields = ['conditions']; |
34 | 34 | public static $module = 'PDF'; |
35 | 35 | public static $parent = 'Settings'; |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | $operator = $condition['operator']; |
236 | 236 | $value = $condition['value'] ?? ''; |
237 | 237 | if (!\in_array($operator, array_merge(self::OPERATORS_WITHOUT_VALUES, self::FIELD_COMPARISON_OPERATORS, array_keys(self::DATE_OPERATORS)))) { |
238 | - [$fieldName, $fieldModuleName,] = array_pad(explode(':', $condition['fieldname']), 3, false); |
|
238 | + [$fieldName, $fieldModuleName, ] = array_pad(explode(':', $condition['fieldname']), 3, false); |
|
239 | 239 | $value = \Vtiger_Module_Model::getInstance($fieldModuleName)->getFieldByName($fieldName) |
240 | 240 | ->getUITypeModel() |
241 | 241 | ->getDbConditionBuilderValue($value, $operator); |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | $advancedConditions['relationConditions'] = self::getConditionsFromRequest($advancedConditions['relationConditions']); |
406 | 406 | } |
407 | 407 | if (!empty($advancedConditions['relationColumns'])) { |
408 | - array_map(function ($v) { |
|
408 | + array_map(function($v) { |
|
409 | 409 | if (!\App\Validator::integer($v)) { |
410 | 410 | throw new \App\Exceptions\IllegalValue('ERR_NOT_ALLOWED_VALUE||' . $v, 406); |
411 | 411 | } |
@@ -115,11 +115,11 @@ |
||
115 | 115 | self::$users['assignUserYes2'] = self::createUserRecord('assignUserYes2', ['available' => '1', 'auto_assign' => '1']); |
116 | 116 | self::$defaultUser = self::createUserRecord('assignUserDefault'); |
117 | 117 | |
118 | - self::$autoAssignUsers = array_filter(array_map(function ($userModel) { |
|
118 | + self::$autoAssignUsers = array_filter(array_map(function($userModel) { |
|
119 | 119 | return $userModel->get('auto_assign') ? $userModel->getId() : null; |
120 | 120 | }, self::$users)); |
121 | 121 | |
122 | - $members = array_map(function ($userModel) { |
|
122 | + $members = array_map(function($userModel) { |
|
123 | 123 | return \App\PrivilegeUtil::MEMBER_TYPE_USERS . ':' . $userModel->getId(); |
124 | 124 | }, self::$users); |
125 | 125 |
@@ -1,4 +1,4 @@ |
||
1 | 1 | <?php |
2 | -$is_admin=true; |
|
3 | -$user_info=['user_name'=>'admin','is_admin'=>'on','user_password'=>'$2y$10$mvy47VqQjd853TpAUr5aE.pd2fSTjBv.Z3G0g8AqyPwPNcV/YtB02','confirm_password'=>'','first_name'=>'','last_name'=>'Administrator','roleid'=>'H2','email1'=>'[email protected]','status'=>'Active','activity_view'=>'This Month','hour_format'=>'24','start_hour'=>'08:00','reports_to_id'=>0,'date_format'=>'yyyy-mm-dd','description'=>'','accesskey'=>'aOFXop10GCJ1uw0P','time_zone'=>'Europe/Sarajevo','currency_id'=>1,'currency_grouping_pattern'=>'123456789','currency_decimal_separator'=>'.','currency_grouping_separator'=>' ','currency_symbol_placement'=>'1.0$','imagename'=>'','internal_mailer'=>1,'theme'=>'twilight','language'=>'pl-PL','reminder_interval'=>'15 Minutes','phone_crm_extension'=>'','no_of_currency_decimals'=>'2','truncate_trailing_zeros'=>1,'dayoftheweek'=>'Monday','othereventduration'=>'[{"activitytype":"Call","duration":"60"},{"activitytype":"Meeting","duration":"60"},{"activitytype":"Task","duration":"60"}]','default_record_view'=>'Summary','leftpanelhide'=>0,'rowheight'=>'medium','defaulteventstatus'=>'PLL_PLANNED','defaultactivitytype'=>'Meeting','is_owner'=>'1','end_hour'=>'23:00','emailoptout'=>1,'available'=>1,'auto_assign'=>0,'view_date_format'=>'PLL_ELAPSED','login_method'=>'PLL_PASSWORD','sync_carddav'=>'PLL_OWNER','sync_caldav'=>'PLL_OWNER','secondary_email'=>'','default_search_operator'=>'PLL_CONTAINS','super_user'=>1,'currency_name'=>'Poland, Zlotych','currency_code'=>'PLN','currency_symbol'=>'zł','conv_rate'=>'1.00000','id'=>1]; |
|
4 | -return ['details'=>['user_name'=>'admin','is_admin'=>'1','user_password'=>'$2y$10$mvy47VqQjd853TpAUr5aE.pd2fSTjBv.Z3G0g8AqyPwPNcV/YtB02','confirm_password'=>'','first_name'=>'','last_name'=>'Administrator','roleid'=>'H2','email1'=>'[email protected]','status'=>'Active','activity_view'=>'This Month','hour_format'=>'24','start_hour'=>'08:00','reports_to_id'=>0,'date_format'=>'yyyy-mm-dd','description'=>'','accesskey'=>'aOFXop10GCJ1uw0P','time_zone'=>'Europe/Sarajevo','currency_id'=>1,'currency_grouping_pattern'=>'123456789','currency_decimal_separator'=>'.','currency_grouping_separator'=>' ','currency_symbol_placement'=>'1.0$','imagename'=>'','internal_mailer'=>1,'theme'=>'twilight','language'=>'pl-PL','reminder_interval'=>'15 Minutes','phone_crm_extension'=>'','no_of_currency_decimals'=>'2','truncate_trailing_zeros'=>1,'dayoftheweek'=>'Monday','othereventduration'=>'[{"activitytype":"Call","duration":"60"},{"activitytype":"Meeting","duration":"60"},{"activitytype":"Task","duration":"60"}]','default_record_view'=>'Summary','leftpanelhide'=>0,'rowheight'=>'medium','defaulteventstatus'=>'PLL_PLANNED','defaultactivitytype'=>'Meeting','is_owner'=>'1','end_hour'=>'23:00','emailoptout'=>1,'available'=>1,'auto_assign'=>0,'records_limit'=>'','phone_crm_extension_extra'=>'','date_password_change'=>'','force_password_change'=>'','view_date_format'=>'PLL_ELAPSED','authy_methods'=>'','authy_secret_totp'=>'','login_method'=>'PLL_PASSWORD','sync_carddav'=>'PLL_OWNER','sync_caldav'=>'PLL_OWNER','sync_carddav_default_country'=>'','default_search_module'=>'','default_search_override'=>'','primary_phone_extra'=>'','primary_phone'=>'','mail_scanner_actions'=>'','mail_scanner_fields'=>'','secondary_email'=>'','default_search_operator'=>'PLL_CONTAINS','super_user'=>1,'calendar_all_users_by_default'=>'','currency_name'=>'Poland, Zlotych','currency_code'=>'PLN','currency_symbol'=>'zł','conv_rate'=>'1.00000','record_id'=>1,'record_module'=>'Users'],'displayName'=>'Administrator','profiles'=>[1],'groups'=>[3],'leadersByGroup'=>[],'leader'=>[],'parent_roles'=>['H1'],'parent_role_seq'=>'H1::H2','roleName'=>'Board of Management','multiCompanyId'=>1,'multiCompanyLogo'=>['name'=>'logo_yetiforce.png','size'=>'3 KB','path'=>'public_html/layouts/resources/Logo/logo_login_page.png','key'=>'11111111111111111111111111111111111111111111111111'],'multiCompanyLogoUrl'=>'file.php?module=MultiCompany&action=Logo&record=1&key=11111111111111111111111111111111111111111111111111']; |
|
2 | +$is_admin = true; |
|
3 | +$user_info = ['user_name'=>'admin', 'is_admin'=>'on', 'user_password'=>'$2y$10$mvy47VqQjd853TpAUr5aE.pd2fSTjBv.Z3G0g8AqyPwPNcV/YtB02', 'confirm_password'=>'', 'first_name'=>'', 'last_name'=>'Administrator', 'roleid'=>'H2', 'email1'=>'[email protected]', 'status'=>'Active', 'activity_view'=>'This Month', 'hour_format'=>'24', 'start_hour'=>'08:00', 'reports_to_id'=>0, 'date_format'=>'yyyy-mm-dd', 'description'=>'', 'accesskey'=>'aOFXop10GCJ1uw0P', 'time_zone'=>'Europe/Sarajevo', 'currency_id'=>1, 'currency_grouping_pattern'=>'123456789', 'currency_decimal_separator'=>'.', 'currency_grouping_separator'=>' ', 'currency_symbol_placement'=>'1.0$', 'imagename'=>'', 'internal_mailer'=>1, 'theme'=>'twilight', 'language'=>'pl-PL', 'reminder_interval'=>'15 Minutes', 'phone_crm_extension'=>'', 'no_of_currency_decimals'=>'2', 'truncate_trailing_zeros'=>1, 'dayoftheweek'=>'Monday', 'othereventduration'=>'[{"activitytype":"Call","duration":"60"},{"activitytype":"Meeting","duration":"60"},{"activitytype":"Task","duration":"60"}]', 'default_record_view'=>'Summary', 'leftpanelhide'=>0, 'rowheight'=>'medium', 'defaulteventstatus'=>'PLL_PLANNED', 'defaultactivitytype'=>'Meeting', 'is_owner'=>'1', 'end_hour'=>'23:00', 'emailoptout'=>1, 'available'=>1, 'auto_assign'=>0, 'view_date_format'=>'PLL_ELAPSED', 'login_method'=>'PLL_PASSWORD', 'sync_carddav'=>'PLL_OWNER', 'sync_caldav'=>'PLL_OWNER', 'secondary_email'=>'', 'default_search_operator'=>'PLL_CONTAINS', 'super_user'=>1, 'currency_name'=>'Poland, Zlotych', 'currency_code'=>'PLN', 'currency_symbol'=>'zł', 'conv_rate'=>'1.00000', 'id'=>1]; |
|
4 | +return ['details'=>['user_name'=>'admin', 'is_admin'=>'1', 'user_password'=>'$2y$10$mvy47VqQjd853TpAUr5aE.pd2fSTjBv.Z3G0g8AqyPwPNcV/YtB02', 'confirm_password'=>'', 'first_name'=>'', 'last_name'=>'Administrator', 'roleid'=>'H2', 'email1'=>'[email protected]', 'status'=>'Active', 'activity_view'=>'This Month', 'hour_format'=>'24', 'start_hour'=>'08:00', 'reports_to_id'=>0, 'date_format'=>'yyyy-mm-dd', 'description'=>'', 'accesskey'=>'aOFXop10GCJ1uw0P', 'time_zone'=>'Europe/Sarajevo', 'currency_id'=>1, 'currency_grouping_pattern'=>'123456789', 'currency_decimal_separator'=>'.', 'currency_grouping_separator'=>' ', 'currency_symbol_placement'=>'1.0$', 'imagename'=>'', 'internal_mailer'=>1, 'theme'=>'twilight', 'language'=>'pl-PL', 'reminder_interval'=>'15 Minutes', 'phone_crm_extension'=>'', 'no_of_currency_decimals'=>'2', 'truncate_trailing_zeros'=>1, 'dayoftheweek'=>'Monday', 'othereventduration'=>'[{"activitytype":"Call","duration":"60"},{"activitytype":"Meeting","duration":"60"},{"activitytype":"Task","duration":"60"}]', 'default_record_view'=>'Summary', 'leftpanelhide'=>0, 'rowheight'=>'medium', 'defaulteventstatus'=>'PLL_PLANNED', 'defaultactivitytype'=>'Meeting', 'is_owner'=>'1', 'end_hour'=>'23:00', 'emailoptout'=>1, 'available'=>1, 'auto_assign'=>0, 'records_limit'=>'', 'phone_crm_extension_extra'=>'', 'date_password_change'=>'', 'force_password_change'=>'', 'view_date_format'=>'PLL_ELAPSED', 'authy_methods'=>'', 'authy_secret_totp'=>'', 'login_method'=>'PLL_PASSWORD', 'sync_carddav'=>'PLL_OWNER', 'sync_caldav'=>'PLL_OWNER', 'sync_carddav_default_country'=>'', 'default_search_module'=>'', 'default_search_override'=>'', 'primary_phone_extra'=>'', 'primary_phone'=>'', 'mail_scanner_actions'=>'', 'mail_scanner_fields'=>'', 'secondary_email'=>'', 'default_search_operator'=>'PLL_CONTAINS', 'super_user'=>1, 'calendar_all_users_by_default'=>'', 'currency_name'=>'Poland, Zlotych', 'currency_code'=>'PLN', 'currency_symbol'=>'zł', 'conv_rate'=>'1.00000', 'record_id'=>1, 'record_module'=>'Users'], 'displayName'=>'Administrator', 'profiles'=>[1], 'groups'=>[3], 'leadersByGroup'=>[], 'leader'=>[], 'parent_roles'=>['H1'], 'parent_role_seq'=>'H1::H2', 'roleName'=>'Board of Management', 'multiCompanyId'=>1, 'multiCompanyLogo'=>['name'=>'logo_yetiforce.png', 'size'=>'3 KB', 'path'=>'public_html/layouts/resources/Logo/logo_login_page.png', 'key'=>'11111111111111111111111111111111111111111111111111'], 'multiCompanyLogoUrl'=>'file.php?module=MultiCompany&action=Logo&record=1&key=11111111111111111111111111111111111111111111111111']; |
@@ -183,7 +183,7 @@ |
||
183 | 183 | public function positions(App\Request $request): void |
184 | 184 | { |
185 | 185 | $currentUserId = App\User::getCurrentUserId(); |
186 | - if ($positionsMap = $request->getMultiDimensionArray('position', [['row' => 'Integer', 'col' => 'Integer']])) { |
|
186 | + if ($positionsMap = $request->getMultiDimensionArray('position', [['row' => 'Integer', 'col' => 'Integer']])) { |
|
187 | 187 | foreach ($positionsMap as $id => $position) { |
188 | 188 | [$linkId, $widgetId] = array_pad(explode('-', $id), 2, false); |
189 | 189 | if ($widgetId) { |
@@ -193,7 +193,7 @@ |
||
193 | 193 | * |
194 | 194 | * @param Vtiger_PDF_Model $pdfModel |
195 | 195 | */ |
196 | - public static function transformAdvanceFilterToWorkFlowFilter(Vtiger_PDF_Model &$pdfModel) |
|
196 | + public static function transformAdvanceFilterToWorkFlowFilter(Vtiger_PDF_Model & $pdfModel) |
|
197 | 197 | { |
198 | 198 | $conditions = $pdfModel->get('conditions'); |
199 | 199 | $wfCondition = []; |
@@ -78,7 +78,7 @@ |
||
78 | 78 | */ |
79 | 79 | public function setPhone(string $phoneNumber): self |
80 | 80 | { |
81 | - $phoneNumber = preg_replace_callback('/[^\d]/s', function () { |
|
81 | + $phoneNumber = preg_replace_callback('/[^\d]/s', function() { |
|
82 | 82 | return ''; |
83 | 83 | }, $phoneNumber); |
84 | 84 | $this->set('to', $phoneNumber); |