Skip to content

Commit

Permalink
#342 usability
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberroland committed Nov 12, 2024
1 parent acec553 commit da2ea9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion lam/lib/modules/eduPerson.inc
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,9 @@ class eduPerson extends baseModule {
if (isset($_POST['addeduPersonScopedAffiliation'])) {
$this->attributes['eduPersonScopedAffiliation'][] = '';
}
$this->attributes['eduPersonScopedAffiliation'] = array_values(array_unique($this->attributes['eduPersonScopedAffiliation']));
if (!empty($this->attributes['eduPersonScopedAffiliation'])) {
$this->attributes['eduPersonScopedAffiliation'] = array_values(array_unique($this->attributes['eduPersonScopedAffiliation']));
}
// principal name
$this->attributes['eduPersonPrincipalName'][0] = $_POST['eduPersonPrincipalName'];
if (($_POST['eduPersonPrincipalName'] != '') && !preg_match('/^[0-9a-z_\\.@-]+$/i', $_POST['eduPersonPrincipalName'])) {
Expand Down
4 changes: 1 addition & 3 deletions lam/lib/modules/pykotaUser.inc
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,6 @@ class pykotaUser extends baseModule {
*/
function display_html_payments() {
$container = new htmlResponsiveRow();
$container->setCSSClasses(['maxrow']);
// total paid
$total = '';
if (!empty($this->attributes['pykotaLifeTimePaid'][0])) {
Expand Down Expand Up @@ -617,7 +616,6 @@ class pykotaUser extends baseModule {
*/
function display_html_jobs() {
$container = new htmlResponsiveRow();
$container->setCSSClasses(['maxrow']);
// jobs
$jobs = $this->getJobs($this->getCurrentUserName(), $this->moduleSettings['pykotaUser_jobSuffix'][0]);
$titles = [
Expand All @@ -634,7 +632,7 @@ class pykotaUser extends baseModule {
];
}
$table = new htmlResponsiveTable($titles, $data);
$table->setWidths(['20%', '20%', '15%', '15%', '30%']);
$table->setWidths(['20%', '20%', '10%', '10%', '40%']);
$container->add($table);
// back button
$container->addVerticalSpacer('2rem');
Expand Down

0 comments on commit da2ea9e

Please sign in to comment.