function set_profile_type4view($profile)
{
$this->profile_type = array(
+ 'is_subsetting' => false,
'is_select' => false,
'is_checkbox' => false,
'is_table' => false,
'is_multi' => false,
);
+ if ($profile['profile_type'] == 'select' || $profile['profile_type'] == 'm-select' || $profile['profile_type'] == 'checkbox' || $profile['profile_type'] == 'table') {
+ $this->profile_type['is_subsetting'] = true;
+ }
if ($profile['profile_type'] == 'select' || $profile['profile_type'] == 'm-select') {
$this->profile_type['is_select'] = true;
}
'label' => __('Profile Type', true),
);
$profiledisp->set_profile_type4view($this->data['Profile']);
- if ($profiledisp->profile_type['is_select'] || $profiledisp->profile_type['is_checkbox'] || $profiledisp->profile_type['is_table']) {
+ if ($profiledisp->profile_type['is_subsetting']) {
$profile_type_select_options['after'] = $html->tag(
'div',
__('If change, Profile Selects/Table Settings will be deleted.', true),
$profiledisp->set_profile_type4view($profile);
?>
<tr class="<?php echo $class;?>">
-<td rowspan="<?php if ($profiledisp->profile_type['is_select'] || $profiledisp->profile_type['is_checkbox'] || $profiledisp->profile_type['is_table']): ?>4<?php else: ?>3<?php endif; ?>">
+<td rowspan="<?php if ($profiledisp->profile_type['is_subsetting']): ?>4<?php else: ?>3<?php endif; ?>">
<?php echo $profile['id']; ?>
</td>
-<td rowspan="<?php if ($profiledisp->profile_type['is_select'] || $profiledisp->profile_type['is_checkbox'] || $profiledisp->profile_type['is_table']): ?>4<?php else: ?>3<?php endif; ?>">
+<td rowspan="<?php if ($profiledisp->profile_type['is_subsetting']): ?>4<?php else: ?>3<?php endif; ?>">
<?php echo $profile['sort_order']; ?>
</td>
<?php echo $select->get_i18n_public_flag($profile['public_flag_default'], $public_flags); ?>
</td>
</tr>
-<?php if ($profiledisp->profile_type['is_select'] || $profiledisp->profile_type['is_checkbox'] || $profiledisp->profile_type['is_table']): ?>
+<?php if ($profiledisp->profile_type['is_subsetting']): ?>
<tr>
<td colspan="6">
<?php