Skip to content

Commit

Permalink
User field: fix "No user" selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Oct 31, 2023
1 parent b17a2ed commit 0f16063
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions administrator/components/com_users/tmpl/users/modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
<form action="<?php echo Route::_('index.php?option=com_users&view=users&layout=modal&tmpl=component&groups=' . $input->get('groups', '', 'BASE64') . '&excluded=' . $input->get('excluded', '', 'BASE64')); ?>" method="post" name="adminForm" id="adminForm">
<?php if (!$userRequired) : ?>
<div>
<button type="button" class="btn btn-primary button-select" data-user-value="0" data-user-name="<?php echo $this->escape(Text::_('JLIB_FORM_SELECT_USER')); ?>"
data-user-field="<?php echo $this->escape($field); ?>"><?php echo Text::_('JOPTION_NO_USER'); ?></button>&nbsp;
<button type="button" class="btn btn-primary button-select"
data-content-select data-content-type="com_users.user" data-id="" data-name=""
data-user-value="" data-user-name="" data-user-field="<?php echo $this->escape($field); ?>"><?php echo Text::_('JOPTION_NO_USER'); ?></button>&nbsp;
</div>
<?php endif; ?>
<?php echo LayoutHelper::render('joomla.searchtools.default', ['view' => $this]); ?>
Expand Down

0 comments on commit 0f16063

Please sign in to comment.