unitedworldwrestling / arena-public

14 stars 5 forks source link

Remove and return the competition all mat #48

Closed mostafaaghayari closed 3 years ago

mostafaaghayari commented 3 years ago

Hello, thank you for answering the questions. If all the mats of the match are removed by mistake during the match, is there a way for the double mattress to be returned to the table with all the matches?

csabavirag commented 3 years ago

There is a protection mechanism which does not allow you to remove "all the mats". The last mat can't be removed. If you remove a mat, matches from that mat go to the first mat (Mat A), then you can move them to other mats as desired. Could you detail what do you think about "double mattress"?

mostafaaghayari commented 3 years ago

Hello Mr. csaba Thanks Please pay attention to the prepared film. https://user-images.githubusercontent.com/82810245/130554369-5013b306-8ac8-45db-8377-a61990e7030d.mp4

csabavirag commented 3 years ago

thanks for the Demo! I will review it.

csabavirag commented 3 years ago

I tried it on Arena 1.5.74.4 and it works as expected for me. Could you try it on the most recent version?

mostafaaghayari commented 3 years ago

Hello Mr. csaba Please pay attention the Demo.

https://user-images.githubusercontent.com/82810245/130951845-2762dac1-ed43-466f-bf7a-7520fa522ee7.mp4

csabavirag commented 3 years ago

Ahh, OK. So you did not delete the last mat, but the whole session (which has the last mat as a "child"). All the fights under the Qualification section have disappeared (got deleted).

So I believe you ask to forbid deleting a session if it has fights assigned.

csabavirag commented 3 years ago

A level of protection is developed for Session removals. Next version of Arena will contain the fix.