Employees of the Department of Environmental Resources, during their detail to another state or Federal agency to fight forest fires, shall be considered, for all purposes, to be working in the Commonwealth for that department. The supervision of their duties during such detail may, however, be governed by agreement between the department and the state, group of states, or Federal agency to which they are detailed.
32 P.S. § 398