While creating a project cannot assign a client (drop down is empty)

last version v1.5.5
I have created a customer
Now I create a project

In the Customer popup, no customer is actually showing up

I have this issue in windows and a linux install as well.

Hello gbrault,

Do you see the customer at: “/index.php/clients/status/active” ?
Do you have some errors in Console (right click on page -> inspect -> Console + refresh the page) ?

Best regards,
Emanuel

Hello EmanelIT

1- I see my customer in “/index.php/clients/status/active”
2- I have no erros in the client (using Chrome Console) neither in the status view nor in the project one (/index.php/projects/form/2)

Best Regards

Gilbert

Hello Gilbert,

I checked in source code and for this form I didn’t see any implementation for this.

Please replace in file: application/modules/projects/views/form.php

<select name="client_id" id="client_id" class="form-control" autofocus="autofocus">
</select>

With

<select name="client_id" id="client_id" class="form-control" autofocus="autofocus">
                <?php
                    foreach ($clients as $client) {
                        echo "<option value=\"" . $client->client_id . "\" ";
                        echo ">" . htmlsc(format_client($client)) . "</option>";
                    }
                    ?>
            </select>
2 Likes

https://development.invoiceplane.com/browse/IP-613?filter=11801

Will be fixed in the next version

Hello All,

I implemented the fix and it works!
Thx

BR

Gilbert