Coder Social home page Coder Social logo

Comments (4)

anuko avatar anuko commented on September 17, 2024 1

I fixed it (hopefully) in version 1.9.31.3536.

from timetracker.

anuko avatar anuko commented on September 17, 2024 1

Closing as the issue appears resolved.

from timetracker.

adevade avatar adevade commented on September 17, 2024

Seems like it worked perfectly! Thank you!

I'm just wondering, is it supposed to copy the value from Default Hourly Rate field?
Because if that is empty when I toggle the project on/off the field for Project Rate does not change. Only when the default rate has a value, and still then it's always zero.

from timetracker.

anuko avatar anuko commented on September 17, 2024

Look at the getRate() function in WEB-INF/templates/user_edit.tpl

// getRate - returns a rate for the project. If rate was set for user previously we'll get this old rate
// if project time entries for user exists. Otherwise return user default rate.
function getRate(project_id) {
var length = project_rates.length;
for(var i = 0; i < length; i++) {
if(project_rates[i][0] == project_id) {
return project_rates[i][1];
}
}
var default_rate = document.userForm.rate.value;
return default_rate;
}

from timetracker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.