Skip to content

Commit

Permalink
Fixed long conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
gasparez15 committed Jul 5, 2024
1 parent 547db34 commit c4b83ca
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import java.util.Map;

import org.apache.bcel.generic.NEW;

import com.logicaldoc.gui.common.client.beans.GUITenant;
import com.logicaldoc.gui.common.client.data.UsersDS;
import com.logicaldoc.gui.common.client.util.ItemFactory;
Expand Down Expand Up @@ -84,7 +86,7 @@ public void refresh() {
SpinnerItem usersQuota = ItemFactory.newSpinnerItem(USERSQUOTA, tenant.getMaxUsers());
usersQuota.setDisabled(readonly);
usersQuota.setRequired(false);
usersQuota.setMin(tenant.getUsers());
usersQuota.setMin((double)tenant.getUsers());
usersQuota.setStep(1);
usersQuota.setWidth(80);
if (!readonly)
Expand All @@ -93,7 +95,7 @@ public void refresh() {
SpinnerItem guestsQuota = ItemFactory.newSpinnerItem(GUESTSQUOTA, "readonlyusersquota", tenant.getMaxGuests());
guestsQuota.setDisabled(readonly);
guestsQuota.setRequired(false);
guestsQuota.setMin(tenant.getGuests());
guestsQuota.setMin((double)tenant.getGuests());
guestsQuota.setStep(1);
guestsQuota.setWidth(80);
if (!readonly)
Expand Down

0 comments on commit c4b83ca

Please sign in to comment.