Latest dev,
Error when creating a funding project, if funding goal is not integer value.
error

Comments

tabestan’s picture

The funding goal should be an integer. Is there a specific use case where you want the goal to be a string?

Yuri’s picture

No I dont want it to be a string, but the code does not take care of this error.

joaogarin’s picture

Yes agree there is no reason for string but it should definitely be verified with a simple check and throw a proper message.

Yuri’s picture

Eventually, this should be a currency field. Otherwise the user is forced to use a site wide currency.
Integrating this module https://www.drupal.org/project/commerce_currency

tabestan’s picture

Status: Active » Needs review
StatusFileSize
new727 bytes

Here's the check if "Goal" is a positive number.

victorcpereira’s picture

Status: Needs review » Reviewed & tested by the community

The patch #5 works well.

pedrorocha’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Commited to 1.x