-
Notifications
You must be signed in to change notification settings - Fork 34
/series/info: TemplateProcessingException when transaction doesn't have a price #467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@cssru What should be the proper behavior? We should correctly handle such cases or prohibit |
If first price is null, the record is useless. We should disallow to add records with null first price. |
So, I was wrong.
|
If this occurs then admin can create special user with name "Someone" and it did the trick. But it's a very-very case than can be omitted.
Yes, this is the case when someone was selling but probably without luck or we didn't know who was the buyer.
No, I disagree. The main point of this is a price. I'm not interesting in the information that Pasha was selling this series in 10.12.2000. But if here will be the price it will be more interesting, because I will be able to compare prices between dates. First price and first currency fields must be non-null. |
Admin can't create special user. For what? We just use special word "Someone" for defining unknown seller.
And what if you don't know price quite yet? |
At present it can't. But will be able, because without this how users (I mean transaction participants) will appear?
I don't add this information to our database then. This information is useless in terms of our site. |
I just suggest to use word "someone" in view to render NULL values of transactions participants. No fake user required, that's I mean. |
…t have a price. Mark first_price and first_currency fields in series_sales table as non-nullable. Fix php-coder#467
At present field
first_price
in theseries_sales
table allow to haveNULL
value but the series info page couldn't be opened because it leads to the exception:How to reproduce:
NULL
as value offirst_price
columnExample:
Related to #198
The text was updated successfully, but these errors were encountered: