Skip to content
Snippets Groups Projects
Commit 9d30c51a authored by Hermann's avatar Hermann
Browse files

add comment regarding states of the price keyword

parent 15e7ce3e
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,9 @@ export default class newEvent extends EditView { ...@@ -29,6 +29,9 @@ export default class newEvent extends EditView {
this.data.additional_fields = {}; this.data.additional_fields = {};
} }
// price can either not be set or set to null
// if it is 0 however, that would mean that there actually is a price that
// you can edit
this.hasprice = 'price' in this.data && this.data.price !== null; this.hasprice = 'price' in this.data && this.data.price !== null;
this.hasregistration = 'time_advertising_start' in this.data; this.hasregistration = 'time_advertising_start' in this.data;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment