kimai / kimai

Kimai is a web-based multi-user time-tracking application. Works great for everyone: freelancers, companies, organizations - everyone can track their times, generate reports, create invoices and do so much more. SaaS version available at https://www.kimai.cloud
https://www.kimai.org
GNU Affero General Public License v3.0
3.32k stars 590 forks source link

Adding meta field in timesheet issue #1504

Closed SpoorthiPalakshaiah closed 4 years ago

SpoorthiPalakshaiah commented 4 years ago

How could I get a meta field in timesheet? I followed the official docs https://www.kimai.org/documentation/meta-fields.html In /opt/kimai/src/EventSubscriber, I added MetaFieldSubscriber.php and MetaFieldDisplaySubscriber.php with code as in documentation but I'm unable to get metafields..

kevinpapst commented 4 years ago

See https://github.com/Keleo/DemoBundle

SpoorthiPalakshaiah commented 4 years ago

After using this https://github.com/Keleo/DemoBundle I'm getting 500-Error image

kevinpapst commented 4 years ago

Check var/log/prod.log Maybe the latest DemoBundle is using features from the upcoming 1.8, I don't know exactly

SpoorthiPalakshaiah commented 4 years ago

Is there any other way to add metafield without using plugins..

kevinpapst commented 4 years ago

No. And it's working exactly as written in the docs. I know many people who use them successfully. But you can also support Kimai by buying the MetaFields bundle from the marketplace.

SpoorthiPalakshaiah commented 4 years ago

Should MetaFieldSubscriber.php and MetaFieldDisplaySubscriber.php in EventSubscriber in /opt/kimai/src? And we should add only these 2 files right?

kevinpapst commented 4 years ago

I don't understand the question. Have a look at the DemoBundle, its all in there: https://github.com/Keleo/DemoBundle

kevinpapst commented 4 years ago

No feedback, closing

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai.

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai.

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai.