Skip to content
Snippets Groups Projects
Commit 7f1b0b82 authored by jaapjansma's avatar jaapjansma
Browse files

php8 issues

parent 547d512e
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@
{$form.title.html}
<span class="">
{ts}System name:{/ts}&nbsp;
<span id="systemName" style="font-style: italic;">{if ($dataProcessor)}{$dataProcessor.name}{/if}</span>
<span id="systemName" style="font-style: italic;">{if isset($dataProcessor)}{$dataProcessor.name}{/if}</span>
<a href="javascript:void(0);" onclick="jQuery('#nameSection').removeClass('hiddenElement'); jQuery(this).parent().addClass('hiddenElement'); return false;">
{ts}Change{/ts}
</a>
......@@ -84,7 +84,7 @@
<script type="text/javascript">
{literal}
CRM.$(function($) {
var id = {/literal}{if ($dataProcessor)}{$dataProcessor.id}{else}false{/if}{literal};
var id = {/literal}{if isset($dataProcessor)}{$dataProcessor.id}{else}false{/if}{literal};
$('#title').on('blur', function() {
var title = $('#title').val();
......@@ -141,7 +141,7 @@
top: 4px;
}
{/literal}
{if $defaultSortUseIcon}{literal}
{if isset($defaultSortUseIcon)}{literal}
.crm-container ul.crm-checkbox-list.crm-sortable-list {
border: 1px solid #a5a5a5;
padding: 0px;
......
......@@ -20,7 +20,7 @@
<div class="clear"></div>
</div>
<div id="type_configuration">
{if ($configuration_template)}
{if isset($configuration_template)}
{include file=$configuration_template}
{/if}
</div>
......@@ -30,7 +30,7 @@
{$form.title.html}
<span class="">
{ts}System name:{/ts}&nbsp;
<span id="systemName" style="font-style: italic;">{if ($field)}{$field.name}{/if}</span>
<span id="systemName" style="font-style: italic;">{if isset($field)}{$field.name}{/if}</span>
<a href="javascript:void(0);" onclick="jQuery('#nameSection').removeClass('hiddenElement'); jQuery(this).parent().addClass('hiddenElement'); return false;">
{ts}Change{/ts}
</a>
......@@ -52,7 +52,7 @@
<script type="text/javascript">
{literal}
CRM.$(function($) {
var id = {/literal}{if ($field)}{$field.id}{else}false{/if}{literal};
var id = {/literal}{if isset($field)}{$field.id}{else}false{/if}{literal};
var data_processor_id = {/literal}{$data_processor_id}{literal};
$(document).on('change','#type_configuration select.data-processor-field-for-name.crm-form-select',function () {
......@@ -87,9 +87,9 @@
</script>
{else}
<div id="type_configuration">
{if ($configuration_template)}
{if isset($configuration_template)}
{include file=$configuration_template}
{/if}
</div>
{/if}
{/crmScope}
\ No newline at end of file
{/crmScope}
......@@ -31,7 +31,7 @@
<div class="clear"></div>
</div>
<div id="type_configuration">
{if ($configuration_template)}
{if isset($configuration_template)}
{include file=$configuration_template}
{/if}
</div>
......@@ -41,7 +41,7 @@
{$form.title.html}
<span class="">
{ts}System name:{/ts}&nbsp;
<span id="systemName" style="font-style: italic;">{if ($filter)}{$filter.name}{/if}</span>
<span id="systemName" style="font-style: italic;">{if isset($filter)}{$filter.name}{/if}</span>
<a href="javascript:void(0);" onclick="jQuery('#nameSection').removeClass('hiddenElement'); jQuery(this).parent().addClass('hiddenElement'); return false;">
{ts}Change{/ts}
</a>
......@@ -69,7 +69,7 @@
<script type="text/javascript">
{literal}
CRM.$(function($) {
var id = {/literal}{if ($filter)}{$filter.id}{else}false{/if}{literal};
var id = {/literal}{if isset($filter)}{$filter.id}{else}false{/if}{literal};
var data_processor_id = {/literal}{$data_processor_id}{literal};
$(document).on('change','#type_configuration select.data-processor-field-for-name.crm-form-select',function () {
......@@ -111,7 +111,7 @@
{else}
<div id="type_configuration">
{if ($configuration_template)}
{if isset($configuration_template)}
{include file=$configuration_template}
{/if}
</div>
......
......@@ -28,7 +28,7 @@
<div id="type_configuration">
{if ($configuration_template)}
{if isset($configuration_template)}
{include file=$configuration_template}
{/if}
</div>
......@@ -71,9 +71,9 @@
</script>
{else}
<div id="type_configuration">
{if ($configuration_template)}
{if isset($configuration_template)}
{include file=$configuration_template}
{/if}
</div>
{/if}
{/crmScope}
\ No newline at end of file
{/crmScope}
......@@ -26,7 +26,7 @@
{$form.title.html}
<span class="">
{ts}System name:{/ts}&nbsp;
<span id="systemName" style="font-style: italic;">{if ($source)}{$source.name}{/if}</span>
<span id="systemName" style="font-style: italic;">{if isset($source)}{$source.name}{/if}</span>
<a href="javascript:void(0);" onclick="jQuery('#nameSection').removeClass('hiddenElement'); jQuery(this).parent().addClass('hiddenElement'); return false;">
{ts}Change{/ts}
</a>
......@@ -41,7 +41,7 @@
</div>
<div id="type_configuration">
{if ($configuration_template)}
{if isset($configuration_template)}
{include file=$configuration_template}
{/if}
......@@ -65,7 +65,7 @@
{/literal}{/if}{literal};
var type = $('#type').val();
var join_type = $('#join_type').val();
var id = {/literal}{if ($source)}{$source.id}{else}false{/if}{literal};
var id = {/literal}{if isset($source)}{$source.id}{else}false{/if}{literal};
var data_processor_id = {/literal}{$data_processor_id}{literal};
if (type) {
var params = {type: type, 'data_processor_id': data_processor_id, 'id': id, 'join_type': join_type};
......@@ -80,7 +80,7 @@
$('#title').on('blur', function() {
var title = $('#title').val();
var id = {/literal}{if ($source)}{$source.id}{else}false{/if}{literal};
var id = {/literal}{if isset($source)}{$source.id}{else}false{/if}{literal};
var data_processor_id = {/literal}{$data_processor_id}{literal};
if ($('#nameSection').hasClass('hiddenElement') && !id) {
CRM.api3('DataProcessorSource', 'check_name', {
......@@ -102,7 +102,7 @@
{include file="CRM/Dataprocessor/Form/Source/Join.tpl"}
{elseif ($block == 'configuration')}
<div id="type_configuration">
{if ($configuration_template)}
{if isset($configuration_template)}
{include file=$configuration_template}
{/if}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment