Bonitasoft-Community / procurement-example

Official Procurement Living Application example for Bonita
GNU Lesser General Public License v3.0
11 stars 15 forks source link

Imposible to start New Request #1

Closed soaswfactory closed 9 years ago

soaswfactory commented 9 years ago

There is a problem when trying to create a New procurement request. It happens because in the following line, which is in the pbButton directive, is not possible to obtain ID of the Process because URL belongs to an Application not the full Bonita Portal and so, the ID is not available:

else if ($scope.properties.action === "Start process") { id = getUrlParam('id');

Regards,

Quauhtli

soaswfactory commented 9 years ago

I had to hardocode process ID genereted in my Bonita installation as following:

  id = getUrlParam('id');
  id = "6503211496962221859";
pozil commented 9 years ago

Hi,

In order to best answer, can you please give me the following information:

Cheers,

soaswfactory commented 9 years ago

Bonita 7.0.2 Last version (downloaded yesterday) There is no error in the console because you're handling the exception it just displays "Impossible to retrieve the process definition id value from the URL".

pozil commented 9 years ago

After struggling to reproduce the issue I figured out that the bug you are reporting is not present in Chrome 44. However, Internet Explorer 11 and Firefox 40 are both affected.

I discovered that the bug is not related to the pbDirective. The issue comes from the custom list transfer widget that allows to select suppliers. For some unknown reason, the form page is refreshed when we select the first supplier and the form iFrame URL changes (you may notice that the pages blinks). The new URL is invalid as it no longer contains the process id. This is why you get the error when trying to submit the form.

I will report the issue to our R&D team and see what can be done to fix it.

soaswfactory commented 9 years ago

Cool!

In fact, I noticed that bug as well just thought it was another one. Please let us know when you fix this.

Thanks!

pozil commented 9 years ago

I have fixed the bug in the Procurement example. Please download the latest release to get the fix.